spiegel_podman/cmd/podman/commands.go
Ashley Cui 93d3eb30a8 Remove umount command from remote client.
Since there is no mount command, it does not make sense to have umount.

Signed-off-by: Ashley Cui <ashleycui16@gmail.com>
2019-06-27 16:52:56 -04:00

82 lines
1.5 KiB
Go

// +build !remoteclient
package main
import (
"github.com/spf13/cobra"
)
const remoteclient = false
// Commands that the local client implements
func getMainCommands() []*cobra.Command {
rootCommands := []*cobra.Command{
_execCommand,
_playCommand,
_loginCommand,
_logoutCommand,
_mountCommand,
_refreshCommand,
_searchCommand,
_statsCommand,
_umountCommand,
_unshareCommand,
}
if len(_varlinkCommand.Use) > 0 {
rootCommands = append(rootCommands, _varlinkCommand)
}
return rootCommands
}
// Commands that the local client implements
func getImageSubCommands() []*cobra.Command {
return []*cobra.Command{
_signCommand,
}
}
// Commands that the local client implements
func getContainerSubCommands() []*cobra.Command {
return []*cobra.Command{
_cleanupCommand,
_execCommand,
_mountCommand,
_refreshCommand,
_runlabelCommand,
_statsCommand,
_umountCommand,
}
}
// Commands that the local client implements
func getPlaySubCommands() []*cobra.Command {
return []*cobra.Command{
_playKubeCommand,
}
}
// Commands that the local client implements
func getTrustSubCommands() []*cobra.Command {
return []*cobra.Command{
_setTrustCommand,
_showTrustCommand,
}
}
// Commands that the local client implements
func getSystemSubCommands() []*cobra.Command {
return []*cobra.Command{
_renumberCommand,
_dfSystemCommand,
_migrateCommand,
}
}
// Commands that the local client implements
func getHealthcheckSubCommands() []*cobra.Command {
return []*cobra.Command{
_healthcheckrunCommand,
}
}