commit cc4c95d55a8ec57149f7d49fac5f005d047cb5da Author: Renan DelValle <rdelval@users.noreply.github.com> Date: Sat Dec 2 15:08:43 2017 -0800 Initial commit of client. 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