Skip to content

Commit bef7fce

Browse files
authored
Merge pull request #6651 from tessapham/fix-fmt
fix formatted strings
2 parents dfdd9a5 + 74aeab0 commit bef7fce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/karmadactl/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var (
4949
// NewCmdCreate returns new initialized instance of create sub command
5050
func NewCmdCreate(f util.Factory, parentCommand string, ioStreams genericiooptions.IOStreams) *cobra.Command {
5151
cmd := kubectlcreate.NewCmdCreate(f, ioStreams)
52-
cmd.Long = fmt.Sprintf(createLong, parentCommand)
52+
cmd.Long = createLong
5353
cmd.Example = fmt.Sprintf(createExample, parentCommand)
5454
cmd.Annotations = map[string]string{
5555
util.TagCommandGroup: util.GroupBasic,

pkg/karmadactl/explain/explain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func NewCmdExplain(f util.Factory, parentCommand string, streams genericiooption
6767
Use: "explain TYPE [--recursive=FALSE|TRUE] [--api-version=api-version-group] [--output=plaintext|plaintext-openapiv2] ",
6868
DisableFlagsInUseLine: true,
6969
Short: "Get documentation for a resource",
70-
Long: fmt.Sprintf(explainLong, parentCommand),
70+
Long: explainLong,
7171
Example: fmt.Sprintf(explainExamples, parentCommand),
7272
Run: func(_ *cobra.Command, args []string) {
7373
cmdutil.CheckErr(o.Complete(f, parentCommand, args))

0 commit comments

Comments
 (0)