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

Allow to predefine login actions #165

Merged
merged 1 commit into from
Jul 31, 2023
Merged

Allow to predefine login actions #165

merged 1 commit into from
Jul 31, 2023

Conversation

tomasmik
Copy link
Contributor

@tomasmik tomasmik commented Jul 28, 2023

Added the ability to predefine the login path to take using flags, this allows for a quicker way to login with less clicking:

  • You can define the --endpoint to skip the need to enter the spacelift url.
  • You can define the --method to skip the choice of login method.
  • You can define both the values above to skip both steps.

Also removed the confusing loop and updated selection for the login method to a prettier menu.

Command example:

spacectl profile login --method browser --endpoint https://unicorn.app.spacelift.io  local-test

Closes: #158

@tomasmik tomasmik self-assigned this Jul 28, 2023
@tomasmik tomasmik force-pushed the less-interactive-login branch 2 times, most recently from 93d3816 to 08aff18 Compare July 28, 2023 09:01
@tomasmik tomasmik marked this pull request as ready for review July 28, 2023 09:15
internal/cmd/profile/login_command.go Show resolved Hide resolved
internal/cmd/profile/flags.go Outdated Show resolved Hide resolved
@tomasmik tomasmik merged commit 6d393ab into main Jul 31, 2023
9 checks passed
@tomasmik tomasmik deleted the less-interactive-login branch July 31, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command args for login command
2 participants