Skip to content

Commit c5f8d27

Browse files
authored
Remove shell completion support (#12)
1 parent 55dbaaf commit c5f8d27

3 files changed

Lines changed: 10 additions & 64 deletions

File tree

cmd/completion.go

Lines changed: 0 additions & 53 deletions
This file was deleted.

cmd/root.go

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,15 @@ const (
4242

4343
func cmd(dockerCli command.Cli) *cobra.Command {
4444
c := &cobra.Command{
45-
Use: "sbom",
46-
Short: shortDescription,
47-
Long: shortDescription + ".\n\nEXPERIMENTAL: The flags and outputs of this command may change. Leave feedback on https://github.com/docker/sbom-cli-plugin.",
48-
Example: helpExample,
49-
Args: validateInputArgs,
50-
SilenceUsage: true,
51-
SilenceErrors: true,
52-
Version: version.FromBuild().Version,
53-
RunE: newRunner(dockerCli).run,
54-
ValidArgsFunction: dockerImageValidArgsFunction,
45+
Use: "sbom",
46+
Short: shortDescription,
47+
Long: shortDescription + ".\n\nEXPERIMENTAL: The flags and outputs of this command may change. Leave feedback on https://github.com/docker/sbom-cli-plugin.",
48+
Example: helpExample,
49+
Args: validateInputArgs,
50+
SilenceUsage: true,
51+
SilenceErrors: true,
52+
Version: version.FromBuild().Version,
53+
RunE: newRunner(dockerCli).run,
5554
}
5655

5756
c.SetVersionTemplate(fmt.Sprintf("%s {{.Version}}, build %s\n", internal.ApplicationName, version.FromBuild().GitCommit))

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/containerd/containerd v1.5.10 // indirect
1111
github.com/containerd/continuity v0.2.2 // indirect
1212
github.com/docker/cli v20.10.12+incompatible
13-
github.com/docker/docker v20.10.12+incompatible
13+
github.com/docker/docker v20.10.12+incompatible // indirect
1414
github.com/docker/docker-credential-helpers v0.6.4 // indirect
1515
github.com/fvbommel/sortorder v1.0.2 // indirect
1616
github.com/gookit/color v1.4.2

0 commit comments

Comments
 (0)