summaryrefslogtreecommitdiff
path: root/cmd/podman/commands.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-06 23:03:12 +0100
committerGitHub <noreply@github.com>2020-02-06 23:03:12 +0100
commit35eb2381a6b5126c6b2483325350561d1987e88b (patch)
treea14d68db8df3b518922892ff9fec369e416967d9 /cmd/podman/commands.go
parent3b47bda863c85b0367da60be3013e17fd6bbfc81 (diff)
parent41b735af053b85aeacc65e45d068246cad789cd7 (diff)
downloadpodman-35eb2381a6b5126c6b2483325350561d1987e88b.tar.gz
podman-35eb2381a6b5126c6b2483325350561d1987e88b.tar.bz2
podman-35eb2381a6b5126c6b2483325350561d1987e88b.zip
Merge pull request #5111 from mheon/service_to_system_service
Move podman-service to podman-system-service
Diffstat (limited to 'cmd/podman/commands.go')
-rw-r--r--cmd/podman/commands.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/cmd/podman/commands.go b/cmd/podman/commands.go
index ebd7aeb0c..d6018a6f4 100644
--- a/cmd/podman/commands.go
+++ b/cmd/podman/commands.go
@@ -26,9 +26,6 @@ func getMainCommands() []*cobra.Command {
if len(_varlinkCommand.Use) > 0 {
rootCommands = append(rootCommands, _varlinkCommand)
}
- if len(_serviceCommand.Use) > 0 {
- rootCommands = append(rootCommands, _serviceCommand)
- }
return rootCommands
}
@@ -71,9 +68,15 @@ func getTrustSubCommands() []*cobra.Command {
// Commands that the local client implements
func getSystemSubCommands() []*cobra.Command {
- return []*cobra.Command{
+ systemCommands := []*cobra.Command{
_renumberCommand,
_dfSystemCommand,
_migrateCommand,
}
+
+ if len(_serviceCommand.Use) > 0 {
+ systemCommands = append(systemCommands, _serviceCommand)
+ }
+
+ return systemCommands
}