-
Notifications
You must be signed in to change notification settings - Fork 49
Move configure cmd to Kong
#602
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
base: main
Are you sure you want to change the base?
Conversation
| // Get organization slug | ||
| org, err := promptForInput("Organization slug: ", false) | ||
| if err != nil { | ||
| return err | ||
| } | ||
| if org == "" { | ||
| return errors.New("organization slug cannot be empty") | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We no longer ask for the org, so bk configure add will fail with no organisation supplied or something, did this get tested?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcncl , yes it got tested. I have removed the prompts and it should be provided as a flag now --org. It will error if the flag is not provided. I've updated the PR description. Maybe I should remove it as a flag and change it to an argument. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lizrabuya it's fine if we want to go via --org/organization, however the --help output says to run this which is incorrect;
bk configure add
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should note in the help output examples that we need those?
|
Need more changes on the |
Description
Migrate
configureandconfigure addcommands to Kong.Changes
/pkg/cmd/configure/*to/cmd/configure/*--orgflag now. This will error if the flag is not provided.Testing
go test ./...)go fmt ./...)