summaryrefslogtreecommitdiffstats
path: root/cmd/ship/root_v2.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/ship/root_v2.go')
-rw-r--r--cmd/ship/root_v2.go28
1 files changed, 4 insertions, 24 deletions
diff --git a/cmd/ship/root_v2.go b/cmd/ship/root_v2.go
index dab63be..9900e83 100644
--- a/cmd/ship/root_v2.go
+++ b/cmd/ship/root_v2.go
@@ -52,6 +52,9 @@ func initV2() {
52 rootV2Cmd.AddCommand(logsV2Cmd) 52 rootV2Cmd.AddCommand(logsV2Cmd)
53 rootV2Cmd.AddCommand(removeV2Cmd) 53 rootV2Cmd.AddCommand(removeV2Cmd)
54 rootV2Cmd.AddCommand(hostV2Cmd) 54 rootV2Cmd.AddCommand(hostV2Cmd)
55
56 // Initialize host subcommands (from host_v2.go)
57 initHostV2()
55} 58}
56 59
57func runDeployV2(cmd *cobra.Command, args []string) error { 60func runDeployV2(cmd *cobra.Command, args []string) error {
@@ -132,27 +135,4 @@ var hostV2Cmd = &cobra.Command{
132 Short: "Manage VPS host", 135 Short: "Manage VPS host",
133} 136}
134 137
135func init() { 138// hostInitV2Cmd, hostStatusV2Cmd, and initHostV2() are defined in host_v2.go
136 hostV2Cmd.AddCommand(hostInitV2Cmd)
137 hostV2Cmd.AddCommand(hostStatusV2Cmd)
138}
139
140var hostInitV2Cmd = &cobra.Command{
141 Use: "init USER@HOST --domain DOMAIN",
142 Short: "Initialize a VPS for deployments",
143 RunE: func(cmd *cobra.Command, args []string) error {
144 // TODO: implement - this is critical functionality to preserve
145 output.PrintAndExit(output.Err(output.ErrNotFound, "not implemented"))
146 return nil
147 },
148}
149
150var hostStatusV2Cmd = &cobra.Command{
151 Use: "status",
152 Short: "Check host status",
153 RunE: func(cmd *cobra.Command, args []string) error {
154 // TODO: implement
155 output.PrintAndExit(output.Err(output.ErrNotFound, "not implemented"))
156 return nil
157 },
158}