Open
Description
- Look at comments on feat(iam): replace account on init command #2778
- Command asks user for variable in a weird order (akey -> skey -> orgID -> statistics -> autocomplete -> projID)
- We added 3 new variables that the user needs to fill or give as an argument, how can we make init command lite again
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
Codelax commentedon Apr 24, 2023
Potential workflow:
Codelax commentedon Apr 24, 2023
Currently init with a profile argument is not superb.
scw init -p mynewprofile
Are you sure you want to override your config.yaml ?
We should warn only if we override a specific profile. It should work flawlessly without interactivity if creating a profile with all required arguments
Fixed in #3097
Codelax commentedon Apr 24, 2023
To question variables:
Codelax commentedon Apr 24, 2023
Autocomplete prompt
We should check if completion is already installed for current shell and skip prompt
Codelax commentedon May 2, 2023
New ideas
From community slack
We could prompt if no SSH key were found, we would need to add a no-prompt option to be sure no prompt will be used. Also we could see if we can use the ssh-agent to get the key, I don't know how it works.
When prompting for access-key and secret-key, set a default that would let user just press enter. Those default keys would be printed in the prompt but the anonymized version, to avoid key leak when making a demo