Commit af1d7de8 authored by hurf's avatar hurf

Change default output of `run` command

Use simple message instead of print result in `get` form.
parent 3dd3aa27
......@@ -220,7 +220,13 @@ func Run(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer, cmd *cob
return fmt.Errorf("cannot attach to %s: not implemented", kind)
}
}
return f.PrintObject(cmd, obj, cmdOut)
outputFormat := cmdutil.GetFlagString(cmd, "output")
if outputFormat != "" {
return f.PrintObject(cmd, obj, cmdOut)
}
cmdutil.PrintSuccess(mapper, false, cmdOut, mapping.Resource, args[0], "created")
return nil
}
func waitForPodRunning(c *client.Client, pod *api.Pod, out io.Writer) error {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment