DockerCLI/cli/command/image
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
..
build gofmt with go1.17 2022-03-26 20:21:00 +01:00
testdata vendor: github.com/docker/docker v20.10.3-0.20220309172631-83b51522df43 2022-03-09 18:45:37 +01:00
build.go move commonly used top-level commands to the top of --help 2022-04-08 16:55:41 +02:00
build_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
client_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
cmd.go Move credential getting functions to the ConfigFile. 2017-06-27 13:46:47 +02:00
formatter_history.go formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
formatter_history_test.go formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
history.go Update list commands with better format flag description 2022-03-15 15:35:53 +01:00
history_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
import.go LCOW: --platform on import (already in API) 2018-09-13 15:04:04 -07:00
import_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
inspect.go Output compact JSON by default for --format=json 2022-03-15 15:42:35 +01:00
inspect_test.go vendor: github.com/docker/docker v20.10.3-0.20220309172631-83b51522df43 2022-03-09 18:45:37 +01:00
list.go move commonly used top-level commands to the top of --help 2022-04-08 16:55:41 +02:00
list_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
load.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
load_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
prune.go prune: use filters.Args.Clone() 2018-12-10 16:48:59 +00:00
prune_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
pull.go move commonly used top-level commands to the top of --help 2022-04-08 16:55:41 +02:00
pull_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
push.go move commonly used top-level commands to the top of --help 2022-04-08 16:55:41 +02:00
push_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
remove.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
remove_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
save.go Prevent overwriting irregular files (cp, save, export commands) 2019-02-07 09:17:35 +01:00
save_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
tag.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
tag_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
trust.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:45:37 +01:00
trust_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00