From 4d87f9083bfb3147566997b3f48c4805229f7c94 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 13 Jul 2016 18:56:02 +0200 Subject: [PATCH] Remove dead code for "inspect --pretty" Signed-off-by: Sebastiaan van Stijn --- api/client/swarm/inspect.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/api/client/swarm/inspect.go b/api/client/swarm/inspect.go index 407a0bfb83..6419ca74b7 100644 --- a/api/client/swarm/inspect.go +++ b/api/client/swarm/inspect.go @@ -11,7 +11,6 @@ import ( type inspectOptions struct { format string - // pretty bool } func newInspectCommand(dockerCli *client.DockerCli) *cobra.Command { @@ -22,16 +21,12 @@ func newInspectCommand(dockerCli *client.DockerCli) *cobra.Command { Short: "Inspect the Swarm", Args: cli.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { - // if opts.pretty && len(opts.format) > 0 { - // return fmt.Errorf("--format is incompatible with human friendly format") - // } return runInspect(dockerCli, opts) }, } flags := cmd.Flags() flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template") - //flags.BoolVarP(&opts.pretty, "pretty", "h", false, "Print the information in a human friendly format.") return cmd } @@ -48,9 +43,5 @@ func runInspect(dockerCli *client.DockerCli, opts inspectOptions) error { return swarm, nil, nil } - // if !opts.pretty { return inspect.Inspect(dockerCli.Out(), []string{""}, opts.format, getRef) - // } - - //return printHumanFriendly(dockerCli.Out(), opts.refs, getRef) }