mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #111486 from peizhouyu/fix-apply-help-text
fix that beginning of help text is cut off for apply and replace --filename flag
This commit is contained in:
commit
bddb4ec08e
@ -170,7 +170,7 @@ func NewApplyFlags(f cmdutil.Factory, streams genericclioptions.IOStreams) *Appl
|
|||||||
return &ApplyFlags{
|
return &ApplyFlags{
|
||||||
Factory: f,
|
Factory: f,
|
||||||
RecordFlags: genericclioptions.NewRecordFlags(),
|
RecordFlags: genericclioptions.NewRecordFlags(),
|
||||||
DeleteFlags: delete.NewDeleteFlags("that contains the configuration to apply"),
|
DeleteFlags: delete.NewDeleteFlags("The files that contain the configurations to apply."),
|
||||||
PrintFlags: genericclioptions.NewPrintFlags("created").WithTypeSetter(scheme.Scheme),
|
PrintFlags: genericclioptions.NewPrintFlags("created").WithTypeSetter(scheme.Scheme),
|
||||||
|
|
||||||
Overwrite: true,
|
Overwrite: true,
|
||||||
|
@ -106,7 +106,7 @@ type ReplaceOptions struct {
|
|||||||
func NewReplaceOptions(streams genericclioptions.IOStreams) *ReplaceOptions {
|
func NewReplaceOptions(streams genericclioptions.IOStreams) *ReplaceOptions {
|
||||||
return &ReplaceOptions{
|
return &ReplaceOptions{
|
||||||
PrintFlags: genericclioptions.NewPrintFlags("replaced"),
|
PrintFlags: genericclioptions.NewPrintFlags("replaced"),
|
||||||
DeleteFlags: delete.NewDeleteFlags("to use to replace the resource."),
|
DeleteFlags: delete.NewDeleteFlags("The files that contain the configurations to replace."),
|
||||||
|
|
||||||
IOStreams: streams,
|
IOStreams: streams,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user