-
Notifications
You must be signed in to change notification settings - Fork 294
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
Handle paths in nerdctl compose
subcommands
#1332
Conversation
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.
In general, I think it would be much better to fix the generator to not generate options for subcommands that are inherited from the parent command.
src/go/nerdctl-stub/parse_args.go
Outdated
subcommands := []string{"build", "config", "down", "kill", "logs", "ps", "pull", "push", "up"} | ||
for _, sc := range subcommands { |
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.
subcommands := []string{"build", "config", "down", "kill", "logs", "ps", "pull", "push", "up"} | |
for _, sc := range subcommands { | |
for _, sc := range []string{"build", "config", "down", "kill", "logs", "ps", "pull", "push", "up"} { |
We never use the slice for anything else.
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.
sure
Some of the commands have a 3-level structure: `nerdctl COMMAND options.... SUBCOMMAND options...` This change will WSL-convert paths that appear in the second set of options. Signed-off-by: Eric Promislow <[email protected]>
Signed-off-by: Eric Promislow <[email protected]>
b0f35b0
to
ef88a07
Compare
Subsumed by #1355 |
Some of the commands have a 3-level structure:
nerdctl COMMAND options.... SUBCOMMAND options...
This change will WSL-convert paths that appear in the second set
of options.
Signed-off-by: Eric Promislow [email protected]