Commit graph

6 commits

Author SHA1 Message Date
Albin Kauffmann
27015ffa5e feat(scw): allow to set profile to "default" 2025-05-02 11:01:59 +02:00
Albin Kauffmann
f8254668e0 feat(scw): add a scw_upgrade command
Upgrade can only be used if scw is installed under the $HOME.
2025-05-02 11:01:59 +02:00
Albin Kauffmann
a577aedc0b 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")
2025-05-02 11:01:59 +02:00
Albin Kauffmann
23578143d7 feat(scw): display the current profile in the prompt 2025-05-02 11:01:59 +02:00
Albin Kauffmann
5c9dc0cfdd 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.
2025-05-02 11:01:59 +02:00
nervo
9ae155336f
feat(scw): use official scw completion (#12755) 2024-10-16 20:57:04 +02:00