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

Unfork spf13/{cobra, pflag} #524

Merged
merged 1 commit into from
Nov 18, 2021
Merged

Conversation

AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Nov 17, 2021

(See the commit message)

Fix #522
Fix #510


I'll release v0.14.0 after merging this

@AkihiroSuda AkihiroSuda added this to the v0.14.0 milestone Nov 17, 2021
@AkihiroSuda
Copy link
Member Author

cc @robberphex

@AkihiroSuda AkihiroSuda marked this pull request as draft November 17, 2021 09:16
@AkihiroSuda

This comment has been minimized.

@AkihiroSuda AkihiroSuda force-pushed the unfork-cobra branch 2 times, most recently from a62e461 to f81e474 Compare November 17, 2021 11:24
@AkihiroSuda AkihiroSuda marked this pull request as ready for review November 17, 2021 11:26
@AkihiroSuda AkihiroSuda force-pushed the unfork-cobra branch 2 times, most recently from 5a88651 to 21452aa Compare November 17, 2021 11:39
@AkihiroSuda AkihiroSuda marked this pull request as draft November 17, 2021 11:45
@AkihiroSuda

This comment has been minimized.

@AkihiroSuda AkihiroSuda force-pushed the unfork-cobra branch 3 times, most recently from 97e6437 to a5baffd Compare November 17, 2021 13:04
@robberphex
Copy link
Contributor

It looks work to me, and thanks for fixing cli related issues.

cmd/nerdctl/main.go Outdated Show resolved Hide resolved
@AkihiroSuda AkihiroSuda force-pushed the unfork-cobra branch 2 times, most recently from 215c661 to e78f4b3 Compare November 18, 2021 05:57
@AkihiroSuda AkihiroSuda marked this pull request as ready for review November 18, 2021 05:59
- Add `AddStringFlag()` to support aliases such as `--storage-driver` and env vars such as `$CONTAINERD_SNAPSHOTTER`
- Set `mainHelpTemplate` to support command categories
- Fix help string of `nerdctl run`
- Mark `nerdctl -a` as non-persistent to avoid conflicting with `nerdctl images -a`
- Mark `nerdctl -n` as non-persistent to avoid conflicting with `nerdctl logs -n`
- Mark `nerdctl compose -f` as non-persistent to avoid conflicting with `nerdctl compose logs -f`
- Set `rootCmd.RunE = unknownSubcommandAction` to make `nerdctl non-existent-command` fail

Fix issue 522
Fix issue 510

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unknown flags should not be ignored nerdctl run argument parsing order potentially broken?
3 participants