mirror of https://github.com/docker/cli.git
Fix typs from go to Go
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
parent
3ab6e03ba3
commit
24d0191a3a
|
@ -30,7 +30,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
|
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
|
||||||
flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes")
|
flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
|
|
|
@ -29,7 +29,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
|
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
|
cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
|
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
|
||||||
flags.BoolVar(&opts.pretty, "pretty", false, "Print the information in a human friendly format.")
|
flags.BoolVar(&opts.pretty, "pretty", false, "Print the information in a human friendly format.")
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
|
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
|
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
|
||||||
flags.BoolVar(&opts.pretty, "pretty", false, "Print the information in a human friendly format.")
|
flags.BoolVar(&opts.pretty, "pretty", false, "Print the information in a human friendly format.")
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ func NewEventsCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
flags.StringVar(&opts.since, "since", "", "Show all events created since timestamp")
|
flags.StringVar(&opts.since, "since", "", "Show all events created since timestamp")
|
||||||
flags.StringVar(&opts.until, "until", "", "Stream events until this timestamp")
|
flags.StringVar(&opts.until, "until", "", "Stream events until this timestamp")
|
||||||
flags.VarP(&opts.filter, "filter", "f", "Filter output based on conditions provided")
|
flags.VarP(&opts.filter, "filter", "f", "Filter output based on conditions provided")
|
||||||
flags.StringVar(&opts.format, "format", "", "Format the output using the given go template")
|
flags.StringVar(&opts.format, "format", "", "Format the output using the given Go template")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ func NewInfoCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
|
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
|
|
||||||
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
|
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ func NewInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
|
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
|
||||||
flags.StringVar(&opts.inspectType, "type", "", "Return JSON for specified type")
|
flags.StringVar(&opts.inspectType, "type", "", "Return JSON for specified type")
|
||||||
flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes if the type is container")
|
flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes if the type is container")
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ func NewVersionCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
|
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
|
|
||||||
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
|
flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
|
cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue