INNER CODE UNIT · Go

initializeCLICommands

alexei-led/pumba · cmd/commands.go:15

func initializeCLICommands(runtime chaos.Runtime) []cli.Command {
	return []cli.Command{
		*cmd.NewKillCLICommand(topContext, runtime),
		*cmd.NewExecCLICommand(topContext, runtime),
		*cmd.NewRestartCLICommand(topContext, runtime),
		*cmd.NewStopCLICommand(topContext, runtime),
		*cmd.NewPauseCLICommand(topContext, runtime),
		*cmd.NewRemoveCLICommand(topContext, runtime),
		*stressCmd.NewStressCLICommand(topContext, runtime),
		{
			Name: "netem",
			Flags: []cli.Flag{
				cli.DurationFlag{
					Name:  "duration, d",
					Usage: "network emulation duration; should be smaller than recurrent interval; use with optional unit suffix: 'ms/s/m/h'",
				},
				cli.StringFlag{
					Name:  "interface, i",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…