Commit graph

4 commits

Author SHA1 Message Date
Albin Kauffmann
62bc41d615 feat(scw): export other SCW_* vars based on the selected profile
This commit makes the `ssp` command also export the following
variables:
- SCW_DEFAULT_ORGANIZATION_ID
- SCW_DEFAULT_PROJECT_ID
- SCW_DEFAULT_REGION
- SCW_DEFAULT_ZONE
- SCW_API_URL
- SCW_ACCESS_KEY (only exported if SCW_EXPORT_TOKENS set to "true")
- SCW_SECRET_KEY (only exported if SCW_EXPORT_TOKENS set to "true")
2023-06-30 10:11:32 +02:00
Albin Kauffmann
974a12e83a feat(scw): display the current profile in the prompt 2023-06-30 10:11:30 +02:00
Albin Kauffmann
9acee1babd feat(scw): add new functions to handle profiles
This commit adds the following commands:
- ssp (Scaleway Set Profile) allows to set the current SCW_PROFILE
- sgp (Scaleway Get Profile) allows to show the current SCW_PROFILE
- scw_profiles allows to list available profiles

Completion and error handling is supported for the ssp command.
2023-06-30 10:11:24 +02:00
Albin Kauffmann
c22e5518ae fix(scw): Trash legacy completion support and use the new completion mechanism 2023-06-30 10:10:59 +02:00