summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2020-02-06 13:19:50 -0500
committerMatthew Heon <mheon@redhat.com>2020-02-06 13:41:57 -0500
commit41b735af053b85aeacc65e45d068246cad789cd7 (patch)
tree505c334ba4cda39f63a378e5209df25c41b6c05a /cmd
parent62111bceb7dab4fc51760b86f762df3716f296fc (diff)
downloadpodman-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.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
}