cmd

package
v0.0.0-...-145771a Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2017 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.3.2"

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "gitlab-cli",
	Short: "Cli tool for performing actions against GitLab repositories",
}

RootCmd represents the base command when called without any subcommands

Functions

func CheckUpdate

func CheckUpdate()

func Execute

func Execute()

Execute 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.

func SaveViperConfig

func SaveViperConfig() error

Types

type Repo

type Repo struct {
	Client  *gitlab.Client
	Project *gogitlab.Project
	Name    string
	Url_    string `mapstructure:"url"`
	URL     *url.URL
	Token   string `mapstructure:"token"`
}

Repo represents a cli repository.

func LoadFromConfig

func LoadFromConfig(namepath string) (*Repo, error)

func LoadFromConfigNoInit

func LoadFromConfigNoInit(namepath string) *Repo

func (*Repo) SaveToConfig

func (r *Repo) SaveToConfig() error

func (*Repo) String

func (r *Repo) String() string

Jump to

Keyboard shortcuts

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