Add standalone command to root
This commit is contained in:
parent
425590cc9a
commit
460bb69f38
2 changed files with 36 additions and 31 deletions
|
@ -17,6 +17,7 @@ func RootCmd() *cobra.Command {
|
|||
AddCmd(),
|
||||
FilterCmd(),
|
||||
InitCmd(),
|
||||
StandaloneCmd(),
|
||||
TokenCmd(),
|
||||
)
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func StandaloneCmd() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "standalone",
|
||||
|
@ -29,7 +33,7 @@ func CreateJiraTicketStandaloneCmd() *cobra.Command{
|
|||
_ = cmd.MarkFlagRequired("summary")
|
||||
cmd.Flags().StringP("template", "m", "", "the template to render the description of the ticket")
|
||||
_ = cmd.MarkFlagRequired("template")
|
||||
cmd.Flags().StringSliceP("vars", "v", "", "the variables to use in the template")
|
||||
cmd.Flags().StringSliceP("vars", "v", []string{}, "the variables to use in the template")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue