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

CLI config command enhance #1790

Closed
aiwantaozi opened this issue Dec 29, 2023 · 1 comment
Closed

CLI config command enhance #1790

aiwantaozi opened this issue Dec 29, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@aiwantaozi
Copy link
Contributor

Update config command from:

 walrus config current-context
 walrus config setup
 walrus config sync

to:

walrus login
walrus context current
walrus context switch

And add API to CLI built-in, remove walrus config sync

@aiwantaozi aiwantaozi added the enhancement New feature or request label Dec 29, 2023
@aiwantaozi aiwantaozi added this to the v0.5.0 milestone Dec 29, 2023
@aiwantaozi aiwantaozi self-assigned this Dec 29, 2023
@Finenyaco
Copy link

Environment

clientVersion:
  version: main
  gitCommit: 7428401fef1d1a45e433c2e7722597a5e12830ef
  isDevVersion: true
serverVersion:
  version: main
  gitCommit: 7428401fef1d1a45e433c2e7722597a5e12830ef
  isDevVersion: true
  • log in walrus:
? Server:  https://192.168.50.182
? Token:  (****Giak)
? Insecure:  Yes
? Project:  default
? Environment:  local
  • Switch project/environment and show the current context.
 ~/seal/ walrus context switch -e env3
 ~/seal/ walrus context current
Current Project: default
Current Environment: env3
 ~/seal/ walrus context switch -p test-project
 ~/seal/ walrus context current
Current Project: test-project
Current Environment: to be configured
 ~/seal/ walrus context switch -p default -e local
 ~/seal/ walrus context current
Current Project: default
Current Environment: local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants