func GetNamesOrPattern(c *cli.Context) ([]string, string) {
	names := []string{}
	pattern := ""
	if c.Args().Present() {
		if len(c.Args()) > 1 {
			names = c.Args()
			log.WithField("names", names).Debug("using names")
		} else {
			first := c.Args().First()
			if strings.HasPrefix(first, Re2Prefix) {
				pattern = strings.Trim(first, Re2Prefix)
				log.WithField("pattern", pattern).Debug("using pattern")
			} else {
				names = append(names, first)
				log.WithField("names", names).Debug("using names")
			}
		}
	}
	return names, pattern
}
GetNamesOrPattern get names list of filter pattern from command line
package chaos
import (
	"context"
	"strings"
	"time"
	"github.com/alexei-led/pumba/pkg/container"
	"github.com/alexei-led/pumba/pkg/util"
	log "github.com/sirupsen/logrus"
	"github.com/urfave/cli"
)
const (
	Re2Prefix = "re2:"
)
var (
	DockerClient container.Client
)
type Command interface {
	Run(ctx context.Context, random bool) error
}