{"modulePath":"github.com/clns/gitlab-cli","version":"v0.0.0-20170710084310-145771aef8c9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cmd\n\n## Constants\n\n```go\nconst Version = \"0.3.2\"\n```\n\n## Variables\n\n```go\nvar RootCmd = \u0026cobra.Command{\n\tUse:   \"gitlab-cli\",\n\tShort: \"Cli tool for performing actions against GitLab repositories\",\n}\n```\nRootCmd represents the base command when called without any subcommands\n\n## Functions\n\n```go\nfunc CheckUpdate()\n```\n\n```go\nfunc Execute()\n```\nExecute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.\n\n```go\nfunc SaveViperConfig() error\n```\n\n## Types\n\n```go\ntype Repo struct {\n\tClient  *gitlab.Client\n\tProject *gogitlab.Project\n\tName    string\n\tUrl_    string `mapstructure:\"url\"`\n\tURL     *url.URL\n\tToken   string `mapstructure:\"token\"`\n}\n```\nRepo represents a cli repository.\n\n```go\nfunc LoadFromConfig(namepath string) (*Repo, error)\n```\n\n```go\nfunc LoadFromConfigNoInit(namepath string) *Repo\n```\n\n```go\nfunc (r *Repo) SaveToConfig() error\n```\n\n```go\nfunc (r *Repo) String() string\n```\n\n","path":"github.com/clns/gitlab-cli/cmd","name":"cmd","synopsis":"","isRedistributable":true}
