mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Use our own normalizers for cmd examples and descriptions
This commit is contained in:
@@ -19,25 +19,23 @@ package set
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/renstrom/dedent"
|
||||
"github.com/spf13/cobra"
|
||||
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
|
||||
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
|
||||
)
|
||||
|
||||
var (
|
||||
set_long = dedent.Dedent(`
|
||||
set_long = templates.LongDesc(`
|
||||
Configure application resources
|
||||
|
||||
|
||||
These commands help you make changes to existing application resources.`)
|
||||
set_example = dedent.Dedent(``)
|
||||
)
|
||||
|
||||
func NewCmdSet(f cmdutil.Factory, out, err io.Writer) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "set SUBCOMMAND",
|
||||
Short: "Set specific features on objects",
|
||||
Long: set_long,
|
||||
Example: set_example,
|
||||
Use: "set SUBCOMMAND",
|
||||
Short: "Set specific features on objects",
|
||||
Long: set_long,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user