From cc4c95d55a8ec57149f7d49fac5f005d047cb5da Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Sat, 2 Dec 2017 15:08:43 -0800 Subject: [PATCH] Initial commit of client. --- cmd/kill.go | 17 +++++++++++++++++ cmd/root.go | 15 +++++++++++++++ main.go | 9 +++++++++ 3 files changed, 41 insertions(+) create mode 100644 cmd/kill.go create mode 100644 cmd/root.go create mode 100644 main.go diff --git a/cmd/kill.go b/cmd/kill.go new file mode 100644 index 0000000..987e0e4 --- /dev/null +++ b/cmd/kill.go @@ -0,0 +1,17 @@ +package cmd + +import ( + "github.com/spf13/cobra" + "fmt") + +func init() { + rootCmd.AddCommand(killCmd) + } + +var killCmd = &cobra.Command{ + Use: "kill", + Short: "kill an Aurora Job", + Run: func(cmd *cobra.Command, args []string) { + fmt.Println("Kill job") + }, + } \ No newline at end of file diff --git a/cmd/root.go b/cmd/root.go new file mode 100644 index 0000000..5a08a20 --- /dev/null +++ b/cmd/root.go @@ -0,0 +1,15 @@ +package cmd + +import "github.com/spf13/cobra" + +var rootCmd = &cobra.Command{ + Use: "ionbeam", + Short: "ionbeam is a client for Apache Aurora", + Long: `A light-weight, intuitive command line client for use with Apache Aurora.`, + Run: func(cmd *cobra.Command, args []string) {}, + } + + + func Execute() { + rootCmd.Execute() + } \ No newline at end of file diff --git a/main.go b/main.go new file mode 100644 index 0000000..85038fc --- /dev/null +++ b/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "github.com/rdelval/ionbeam/cmd" +) + +func main() { + cmd.Execute() +} \ No newline at end of file