summaryrefslogtreecommitdiff
path: root/cmd/podman/commands_remoteclient.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-01-31 13:20:04 -0600
committerbaude <bbaude@redhat.com>2019-02-08 10:26:43 -0600
commit25a3923b61a5ca014318e6d957f68abd03947297 (patch)
tree2ccb4a0bd9bda70c1c258dcb1b8aca8961d9ad30 /cmd/podman/commands_remoteclient.go
parent962850c6e0dfcee926af31fc0ad24f1f6c26f8ac (diff)
downloadpodman-25a3923b61a5ca014318e6d957f68abd03947297.tar.gz
podman-25a3923b61a5ca014318e6d957f68abd03947297.tar.bz2
podman-25a3923b61a5ca014318e6d957f68abd03947297.zip
Migrate to cobra CLI
We intend to migrate to the cobra cli from urfave/cli because the project is more well maintained. There are also some technical reasons as well which extend into our remote client work. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/commands_remoteclient.go')
-rw-r--r--cmd/podman/commands_remoteclient.go45
1 files changed, 34 insertions, 11 deletions
diff --git a/cmd/podman/commands_remoteclient.go b/cmd/podman/commands_remoteclient.go
index 0adbd7b4c..80083eab9 100644
--- a/cmd/podman/commands_remoteclient.go
+++ b/cmd/podman/commands_remoteclient.go
@@ -2,24 +2,47 @@
package main
-import "github.com/urfave/cli"
+import (
+ "github.com/spf13/cobra"
+)
-func getAppCommands() []cli.Command {
- return []cli.Command{}
+//import "github.com/urfave/cli"
+//
+func getAppCommands() []*cobra.Command {
+ return []*cobra.Command{}
}
-func getImageSubCommands() []cli.Command {
- return []cli.Command{}
+func getImageSubCommands() []*cobra.Command {
+ return []*cobra.Command{}
}
-func getContainerSubCommands() []cli.Command {
- return []cli.Command{}
+func getContainerSubCommands() []*cobra.Command {
+ return []*cobra.Command{}
}
-func getSystemSubCommands() []cli.Command {
- return []cli.Command{}
+func getPodSubCommands() []*cobra.Command {
+ return []*cobra.Command{}
}
-func getMainAppFlags() []cli.Flag {
- return []cli.Flag{}
+func getVolumeSubCommands() []*cobra.Command {
+ return []*cobra.Command{}
+}
+
+func getGenerateSubCommands() []*cobra.Command {
+ return []*cobra.Command{}
+}
+
+func getPlaySubCommands() []*cobra.Command {
+ return []*cobra.Command{}
+}
+
+func getTrustSubCommands() []*cobra.Command {
+ return []*cobra.Command{}
+}
+
+//func getMainAppFlags() []cli.Flag {
+// return []cli.Flag{}
+//}
+func getSystemSubCommands() []*cobra.Command {
+ return []*cobra.Command{}
}