code: func NewCmdRolloutStatus(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
  	o := NewRolloutStatusOptions(streams)
  
  	validArgs := []string{"deployment", "daemonset", "statefulset"}
  
  	cmd := &cobra.Command{
  		Use:                   "status (TYPE NAME | TYPE/NAME) [flags]",
  		DisableFlagsInUseLine: true,
  		Short:                 i18n.T("Show the status of the rollout"),
  		Long:                  statusLong,
  		Example:               statusExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(o.Complete(f, args))
  			cmdutil.CheckErr(o.Validate())
  			cmdutil.CheckErr(o.Run())
  		},
  		ValidArgs: validArgs,
  	}
  
  	usage := "identifying the resource to get from a server."
  	cmdutil.AddFilenameOptionFlags(cmd, o.FilenameOptions, usage)
  	cmd.Flags().BoolVarP(&o.Watch, "watch", "w", o.Watch, "Watch the status of the rollout until it's done.")
  	cmd.Flags().Int64Var(&o.Revision, "revision", o.Revision, "Pin to a specific revision for showing its status. Defaults to 0 (last revision).")
  	cmd.Flags().DurationVar(&o.Timeout, "timeout", o.Timeout, "The length of time to wait before ending watch, zero means never. Any other values should contain a corresponding time unit (e.g. 1s, 2m, 3h).")
  
  	return cmd
  }
docs: // NewCmdRolloutStatus returns a Command instance for the 'rollout status' sub command