DockerCLI/cli/command/context
Sebastiaan van Stijn 67458f710d
cli/command: remove redundant capturing of loop vars in tests (copyloopvar)
go1.22 and up now produce a unique variable in loops, tehrefore no longer
requiring to capture the variable manually;

    service/logs/parse_logs_test.go:50:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
            tc := tc
            ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-11-05 10:14:30 +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 comments to go1.21 2024-06-18 12:17:13 +02:00
create_test.go cli/command: remove redundant capturing of loop vars in tests (copyloopvar) 2024-11-05 10:14:30 +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 comments to go1.21 2024-06-18 12:17:13 +02: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 comments to go1.21 2024-06-18 12:17:13 +02: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