diff options
author | Matthew Heon <mheon@redhat.com> | 2020-02-06 13:19:50 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-02-06 13:41:57 -0500 |
commit | 41b735af053b85aeacc65e45d068246cad789cd7 (patch) | |
tree | 505c334ba4cda39f63a378e5209df25c41b6c05a /cmd | |
parent | 62111bceb7dab4fc51760b86f762df3716f296fc (diff) | |
download | podman-41b735af053b85aeacc65e45d068246cad789cd7.tar.gz podman-41b735af053b85aeacc65e45d068246cad789cd7.tar.bz2 podman-41b735af053b85aeacc65e45d068246cad789cd7.zip |
Move podman-service to podman-system-service
Fixes #5108
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/commands.go | 11 |
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 } |