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

Store current profile #159

Open
glennblock opened this issue Sep 26, 2017 · 0 comments
Open

Store current profile #159

glennblock opened this issue Sep 26, 2017 · 0 comments

Comments

@glennblock
Copy link
Contributor

glennblock commented Sep 26, 2017

Overview

Today wt-cli supports multiple profiles allowing you to specify --profile with each command to use that profile for execution.

When doing a bunch of steps or even scripting them, it's annoying to have to pass --profile over and over.

Proposal

Introduce a wt profile current [name] command which will set and persist the selected profile name. if current is set, that profile will be used by default. By default current will be set to "default". If a user decides to change to a different profile they can use the new command.

  • The state would be persisted locally (like in the .webtask file) and not as part of their account.
  • If the current profile is deleted, then an error will be returned if a command is executed. This ensures that the user knows that the profile is gone, rather than automatically falling back to another profile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants