aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/system.go
blob: 9596252adfe364882ccfe8d0647a5f4ffea16968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package main

import (
	"sort"

	"github.com/urfave/cli"
)

var (
	systemSubCommands = []cli.Command{
		pruneSystemCommand,
	}
	systemDescription = "Manage podman"
	systemCommand     = cli.Command{
		Name:                   "system",
		Usage:                  "Manage podman",
		Description:            systemDescription,
		ArgsUsage:              "",
		Subcommands:            getSystemSubCommandsSorted(),
		UseShortOptionHandling: true,
		OnUsageError:           usageErrorHandler,
	}
)

func getSystemSubCommandsSorted() []cli.Command {
	systemSubCommands = append(systemSubCommands, getSystemSubCommands()...)
	sort.Sort(commandSortedAlpha{systemSubCommands})
	return systemSubCommands
}