code: func RunList(cmd *cobra.Command, dockerCli command.Cli, opts options.List, orchestrator command.Orchestrator) error {
  	stacks := []*formatter.Stack{}
  	if orchestrator.HasSwarm() {
  		ss, err := swarm.GetStacks(dockerCli)
  		if err != nil {
  			return err
  		}
  		stacks = append(stacks, ss...)
  	}
  	if orchestrator.HasKubernetes() {
  		kubeCli, err := kubernetes.WrapCli(dockerCli, kubernetes.NewOptions(cmd.Flags(), orchestrator))
  		if err != nil {
  			return err
  		}
  		ss, err := kubernetes.GetStacks(kubeCli, opts)
  		if err != nil {
  			return err
  		}
  		stacks = append(stacks, ss...)
  	}
  	return format(dockerCli, opts, orchestrator, stacks)
  }
docs: // RunList performs a stack list against the specified orchestrator