Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "tribe",
Short: "A brief description of your application",
Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
}
RootCmd represents the base command when called without any subcommands
View Source
var ShowCmd = &cobra.Command{ Use: "show", Short: "Show relevant information about a given work item or issue", Long: `See the name, description and owner for relevant work items or issues in CA Agile Central or Jira.`, Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { workitemid := args[0] api, err := work.NewItemServer() if err != nil { fmt.Println(err) os.Exit(1) } workitem, err := api.GetItem(workitemid) if err != nil { fmt.Println(err) os.Exit(1) } Display(os.Stdout, workitem) }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.