File tree Expand file tree Collapse file tree 5 files changed +5
-11
lines changed
Expand file tree Collapse file tree 5 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1515package cmd
1616
1717import (
18- "github.com/spf13/cobra"
1918 "github.com/openconfig/containerz/client"
19+ "github.com/spf13/cobra"
2020)
2121
2222var containerCmd = & cobra.Command {
2323 Use : "container" ,
2424 Short : "General container operations" ,
2525 PersistentPreRunE : func (cmd * cobra.Command , args []string ) error {
26- RootCmd .PersistentPreRun (cmd , args )
2726 var err error
2827 containerzClient , err = client .NewClient (cmd .Context (), addr )
2928 return err
Original file line number Diff line number Diff line change 1515package cmd
1616
1717import (
18- "github.com/spf13/cobra"
1918 "github.com/openconfig/containerz/client"
19+ "github.com/spf13/cobra"
20+
2021 cpb "github.com/openconfig/gnoi/containerz"
2122)
2223
@@ -30,7 +31,6 @@ var imageCmd = &cobra.Command{
3031 Use : "image" ,
3132 Short : "General image operations" ,
3233 PersistentPreRunE : func (cmd * cobra.Command , args []string ) error {
33- RootCmd .PersistentPreRun (cmd , args )
3434 var err error
3535 containerzClient , err = client .NewClient (cmd .Context (), addr )
3636 return err
Original file line number Diff line number Diff line change 1515package cmd
1616
1717import (
18- "github.com/spf13/cobra"
1918 "github.com/openconfig/containerz/client"
19+ "github.com/spf13/cobra"
2020)
2121
2222var pluginCmd = & cobra.Command {
2323 Use : "plugin" ,
2424 Short : "General plugin operations" ,
2525 PersistentPreRunE : func (cmd * cobra.Command , args []string ) error {
26- RootCmd .PersistentPreRun (cmd , args )
2726 var err error
2827 containerzClient , err = client .NewClient (cmd .Context (), addr )
2928 return err
Original file line number Diff line number Diff line change 1616package cmd
1717
1818import (
19-
2019 "github.com/spf13/cobra"
2120)
2221
2827var RootCmd = & cobra.Command {
2928 Use : "containerz" ,
3029 Short : "Containerz suite of CLI tools" ,
31- PersistentPreRun : func (cmd * cobra.Command , args []string ) {
32- },
3330 Run : func (command * cobra.Command , args []string ) {
3431 command .HelpFunc ()(command , args )
3532 },
Original file line number Diff line number Diff line change 1515package cmd
1616
1717import (
18- "github.com/spf13/cobra"
1918 "github.com/openconfig/containerz/client"
19+ "github.com/spf13/cobra"
2020)
2121
2222var volumesCmd = & cobra.Command {
2323 Use : "volume" ,
2424 Short : "General volume operations" ,
2525 PersistentPreRunE : func (cmd * cobra.Command , args []string ) error {
26- RootCmd .PersistentPreRun (cmd , args )
2726 var err error
2827 containerzClient , err = client .NewClient (cmd .Context (), addr )
2928 return err
You can’t perform that action at this time.
0 commit comments