Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "latest-release <user>/<repo>", Short: "Get latest release of a repository", Aliases: []string{"lr"}, Args: cobra.ExactArgs(1), RunE: func(c *cobra.Command, args []string) error { argS := strings.Split(args[0], "/") if len(argS) != 2 { return fmt.Errorf("invalid argument: %s, required format is <user>/<repo>", args[0]) } release, err := github_utils.GetLatestReleaseE(argS[0], argS[1]) if err != nil { log.Fatal(err) } fmt.Println(release) return nil }, }
View Source
var FlagNamespace string
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.