qovery-cli
qovery-cli copied to clipboard
feat: able to specify context inline on commands
Description
This PR addresses issue #158 by implementing the ability to specify context inline on shell commands, which makes it faster and more convenient for users who manage multiple instances/environments.
Changes
- Added a new
--contextflag to the shell command that accepts a string in the formatorganization:project:environment:service - Implemented parsing logic to extract the individual components from the context string
- Added the necessary conditional logic in the command execution flow to prioritize the inline context flag
- Updated the command examples to include the new usage pattern
Usage:
Users can now run commands like:
qovery shell --context webapp:staging:web
qovery shell -c bash --context webapp:production:worker