Adding new verbs and fleshing out the skeleton. Drain works while Kill has an error tha requires a deeper dive.
This commit is contained in:
parent
51ff20165e
commit
8e0988513a
7 changed files with 232 additions and 40 deletions
27
cmd/create.go
Normal file
27
cmd/create.go
Normal file
|
@ -0,0 +1,27 @@
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(createCmd)
|
||||
createCmd.Flags().StringVarP(&env, "environment", "e", "", "Aurora Environment")
|
||||
createCmd.Flags().StringVarP(&role, "role", "r", "", "Aurora Role")
|
||||
createCmd.Flags().StringVarP(&name, "name", "n", "", "Aurora Name")
|
||||
createCmd.MarkFlagRequired("environment")
|
||||
createCmd.MarkFlagRequired("role")
|
||||
createCmd.MarkFlagRequired("name")
|
||||
}
|
||||
|
||||
var createCmd = &cobra.Command{
|
||||
Use: "create",
|
||||
Short: "Create an Aurora Job",
|
||||
Run: createJob,
|
||||
}
|
||||
|
||||
func createJob(cmd *cobra.Command, args []string) {
|
||||
fmt.Println("Not implemented yet.")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue