Commit a153f6f8 authored by tianshapjq's avatar tianshapjq

add some specifications on the top command

parent 281053d6
...@@ -32,13 +32,15 @@ var ( ...@@ -32,13 +32,15 @@ var (
topLong = templates.LongDesc(` topLong = templates.LongDesc(`
Display Resource (CPU/Memory/Storage) usage. Display Resource (CPU/Memory/Storage) usage.
The top command allows you to see the resource consumption for nodes or pods.`) The top command allows you to see the resource consumption for nodes or pods.
This command is available only if the Heapster works fine on the server. `)
) )
func NewCmdTop(f cmdutil.Factory, out, errOut io.Writer) *cobra.Command { func NewCmdTop(f cmdutil.Factory, out, errOut io.Writer) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "top", Use: "top",
Short: "Display Resource (CPU/Memory/Storage) usage", Short: "Display Resource (CPU/Memory/Storage) usage, available only if Heapster works fine on the server.",
Long: topLong, Long: topLong,
Run: cmdutil.DefaultSubCommandRun(errOut), Run: cmdutil.DefaultSubCommandRun(errOut),
} }
......
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