tower-cli icon indicating copy to clipboard operation
tower-cli copied to clipboard

Change default workspace command

Open grananda opened this issue 4 years ago • 0 comments

Summary

The purpose of this issue is to allow the possibility to change the default workspace defined as an env variable with a CLI command. This will prevent the manual change of the tower CLI env variable and its reload when necessary.

Intended outcome

Once the command is executed, the CLI will recognize the new workspace as the default.

How will it work

api().setDefaultWorkspace(Long workspaceId)

This feature could be implemented in many ways:

  • Modifying the ENV var value directly. This may be cumbersome when dealing with different OS.
  • Creating a profile system where, in addition, a different set of variables could be defined as well. This system is similar to the current AWS-CLI tool strategy (as discussed with @jordeu in previous conversations). Implementing this method will required a profile manager CLI command set.

grananda avatar Nov 02 '21 13:11 grananda