code: func NewCmdRolloutPause(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
  	o := &PauseOptions{
  		PrintFlags: genericclioptions.NewPrintFlags("paused").WithTypeSetter(scheme.Scheme),
  		IOStreams:  streams,
  	}
  
  	validArgs := []string{"deployment"}
  
  	cmd := &cobra.Command{
  		Use:                   "pause RESOURCE",
  		DisableFlagsInUseLine: true,
  		Short:                 i18n.T("Mark the provided resource as paused"),
  		Long:                  pauseLong,
  		Example:               pauseExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(o.Complete(f, cmd, args))
  			cmdutil.CheckErr(o.Validate())
  			cmdutil.CheckErr(o.RunPause())
  		},
  		ValidArgs: validArgs,
  	}
  
  	o.PrintFlags.AddFlags(cmd)
  
  	usage := "identifying the resource to get from a server."
  	cmdutil.AddFilenameOptionFlags(cmd, &o.FilenameOptions, usage)
  	return cmd
  }
docs: // NewCmdRolloutPause returns a Command instance for 'rollout pause' sub command