latest_release

package
v0.81.0-dev-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL