code: func NewCmdWait(restClientGetter genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams) *cobra.Command {
  	flags := NewWaitFlags(restClientGetter, streams)
  
  	cmd := &cobra.Command{
  		Use:     "wait ([-f FILENAME] | resource.group/resource.name | resource.group [(-l label | --all)]) [--for=delete|--for condition=available]",
  		Short:   "Experimental: Wait for a specific condition on one or many resources.",
  		Long:    waitLong,
  		Example: waitExample,
  
  		DisableFlagsInUseLine: true,
  		Run: func(cmd *cobra.Command, args []string) {
  			o, err := flags.ToOptions(args)
  			cmdutil.CheckErr(err)
  			err = o.RunWait()
  			cmdutil.CheckErr(err)
  		},
  		SuggestFor: []string{"list", "ps"},
  	}
  
  	flags.AddFlags(cmd)
  
  	return cmd
  }
docs: // NewCmdWait returns a cobra command for waiting