DockerCLI/cli/command/system
Sebastiaan van Stijn aaa912c9f7
move commonly used top-level commands to the top of --help
This adds a new annotation to commands that are known to be frequently
used, and allows setting a custom weight/order for these commands to
influence in what order they appear in the --help output.

I'm not entirely happy with the implementation (we could at least use
some helpers for this, and/or make it more generic to group commands
in output), but it could be a start.

For now, limiting this to only be used for the top-level --help, but
we can expand this to subcommands as well if we think it makes sense
to highlight "common" / "commonly used" commands.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-04-08 16:55:41 +02:00
..
testdata vendor: github.com/docker/docker 8941dcfcc5db4aefc351cd5b5bb4d524823035c0 2022-03-28 17:21:59 +02:00
client_test.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
cmd.go Revert "Disable `docker system dial-stdio` on Windows" 2019-03-12 14:57:52 +00:00
df.go Update list commands with better format flag description 2022-03-15 15:35:53 +01:00
dial_stdio.go dial-stdio: fix goroutine leakage 2019-03-22 20:22:00 +09:00
events.go cli/command/system: remove deprecated io/ioutil 2022-02-25 15:42:11 +01:00
info.go move commonly used top-level commands to the top of --help 2022-04-08 16:55:41 +02:00
info_test.go linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
inspect.go Output compact JSON by default for --format=json 2022-03-15 15:42:35 +01:00
prune.go Replace vbom.ml/util with fvbommel/sortorder 2020-08-28 15:35:42 +02:00
prune_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
version.go move commonly used top-level commands to the top of --help 2022-04-08 16:55:41 +02:00
version_test.go Merge pull request #2500 from thaJeztah/version_context 2020-05-07 16:10:16 +02:00