DockerCLI/cli/command/registry
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 formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
formatter_search.go use consistent alias for api/types/registry 2022-03-04 14:45:34 +01:00
formatter_search_test.go linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
login.go move commonly used top-level commands to the top of --help 2022-04-08 16:55:41 +02:00
login_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
logout.go move commonly used top-level commands to the top of --help 2022-04-08 16:55:41 +02:00
search.go move commonly used top-level commands to the top of --help 2022-04-08 16:55:41 +02:00