cmd

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const SearchPath = "/packages/search"
View Source
const URL = "https://gopher.rocks"

Variables

View Source
var (
	AuthorSearch  string
	EmailSearch   string
	KeywordSearch string
)
View Source
var Major bool
View Source
var Minor bool
View Source
var Patch bool
View Source
var RootCmd = &cobra.Command{
	Use:   "rock",
	Short: "rock is a tool to help manage versions of a Go package",
	Long: `The rock tool has commands to help you display and create releases/tags for your Go
	packages.  It also allows you to discover Go packages by searching an online repository of package
	metadata.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Author

type Author struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type Package

type Package struct {
	Authors     []Author  `json:"authors"`
	ImportPath  string    `json:"import_path"`
	SourceURL   string    `json:"source_url"`
	License     string    `json:"license"`
	Keywords    []string  `json:"keywords"`
	Description string    `json:"description"`
	Versions    []Version `json:"versions"`
}

type PackageSearchQuery

type PackageSearchQuery struct {
	Authors  []string `json:"authors"`
	Keywords []string `json:"keywords"`
}

type Version

type Version struct {
	Tag        string    `json:"tag"`
	ReleasedOn time.Time `json:"released_on"`
}

Jump to

Keyboard shortcuts

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