Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): console region subcommands #69

Merged
merged 4 commits into from
Oct 17, 2023

Conversation

Nuttymoon
Copy link
Contributor

Dependencies

Changes

  • CLI
    • Rename console ... show subcommands to console ... info out of coherence with avalanche commands
    • Add show and select subcommands to console project. This allows to select the current project that will be used by default in other subcommands like console region ...
      cargo run -- console project show
      cargo run -- console project select $PROJECT_ID
      cargo run -- console project show
    • Add the Cloud regions column to the console project subcommands output table
    • Add the console region subcommands: available, list, add, info, remove
      cargo run -- console region available
      cargo run -- console region add '{"cloudProvider": "aws", "region": "us-east-2", "cloudCredentialsSecretId": "$SECRET_ID"}'
      cargo run -- console region list
      cargo run -- console region info aws/us-east-2
      cargo run -- console region remove aws/us-east-2

Additional comments

  • The current project is stored at ~/.local/state/ash/state.json which seems to be good practice on Linux/MacOS
  • As usual, users get more information when using --json

@Nuttymoon Nuttymoon merged commit cb5e50d into ash-console-alpha Oct 17, 2023
@Nuttymoon Nuttymoon deleted the console-region-subcommands branch October 17, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants