code: func NewWaitCommand(dockerCli command.Cli) *cobra.Command {
  	var opts waitOptions
  
  	cmd := &cobra.Command{
  		Use:   "wait CONTAINER [CONTAINER...]",
  		Short: "Block until one or more containers stop, then print their exit codes",
  		Args:  cli.RequiresMinArgs(1),
  		RunE: func(cmd *cobra.Command, args []string) error {
  			opts.containers = args
  			return runWait(dockerCli, &opts)
  		},
  	}
  
  	return cmd
  }
docs: // NewWaitCommand creates a new cobra.Command for `docker wait`