mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Use dedent for the kubectl commands
The one side effect is that for the "kubectl help" commands a newline is prepended to output, which will alter the yaml output. Here we use dedent to format the code to match the output. hack/update-generated-docs.sh has been run and the affected files have been added. Note: for describe.go we added a period to the end of an output message.
This commit is contained in:
@@ -19,15 +19,17 @@ package set
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/renstrom/dedent"
|
||||
"github.com/spf13/cobra"
|
||||
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
|
||||
)
|
||||
|
||||
const (
|
||||
set_long = `Configure application resources
|
||||
var (
|
||||
set_long = dedent.Dedent(`
|
||||
Configure application resources
|
||||
|
||||
These commands help you make changes to existing application resources.`
|
||||
set_example = ``
|
||||
These commands help you make changes to existing application resources.`)
|
||||
set_example = dedent.Dedent(``)
|
||||
)
|
||||
|
||||
func NewCmdSet(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
||||
|
||||
Reference in New Issue
Block a user