DockerCLI/cli/command/context
Sebastiaan van Stijn 7c80e4f938
update go:build tags to use go1.22
commit 4a7b04d412 configured golangci-lint
to use go1.23 semantics, which enabled the copyloopvar linter.

go1.22 now creates a copy of variables when assigned in a loop; make sure we
don't have files that may downgrade semantics to go1.21 in case that also means
disabling that feature; https://go.dev/ref/spec#Go_1.22

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-11-12 12:38:18 +01:00
..
testdata context list: temporarily add ContextType to JSON output 2024-05-31 13:08:31 +02:00
cmd.go introduce `context show` command 2022-04-25 14:40:24 +02:00
create.go update go:build tags to use go1.22 2024-11-12 12:38:18 +01:00
create_test.go update go:build tags to use go1.22 2024-11-12 12:38:18 +01:00
export-import_test.go cli/command/context: test inspecting context with custom metadata 2024-05-31 10:49:50 +02:00
export.go Removed all mentions of "please" from docs and messages 2024-06-11 16:53:40 +02:00
import.go Introduce .zip import for docker context 2019-05-29 12:58:45 -07:00
inspect.go update go:build tags to use go1.22 2024-11-12 12:38:18 +01:00
inspect_test.go cli/command/context: test inspecting context with custom metadata 2024-05-31 10:49:50 +02:00
list.go update go:build tags to use go1.22 2024-11-12 12:38:18 +01:00
list_test.go cli/command/context: list: add test for JSON output 2024-05-31 10:54:15 +02:00
options.go linting: fmt.Sprintf can be replaced with string concatenation (perfsprint) 2024-06-10 21:19:32 +02:00
remove.go cli/context/store: simplify error handling, and make it more idiomatic 2022-09-30 11:19:25 +02:00
remove_test.go cli/command/context: test inspecting context with custom metadata 2024-05-31 10:49:50 +02:00
show.go cli/command/context: "docker context show": don't validate context 2022-11-28 11:30:35 +01:00
show_test.go cli/command/context: test inspecting context with custom metadata 2024-05-31 10:49:50 +02:00
update.go golangci-lint: revive: enable import-shadowing 2023-11-20 19:52:41 +01:00
update_test.go cli/command/context: test inspecting context with custom metadata 2024-05-31 10:49:50 +02:00
use.go context use: don't create/update config file and directories if not needed 2022-07-29 14:20:05 +02:00
use_test.go cli/command/context: don't use pkg/homedir in test 2023-06-26 13:35:42 +02:00