cmd

package
v0.0.0-...-1a7c62c Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "github-cli",
	Short: "Use github-cli to perform github tasks.",
	Long:  "Use github-cli to perform github tasks.",
}

RootCmd is the github-cli root command.

Functions

func Execute

func Execute()

Execute runs the root command.

Types

type CreateRepoOptions

type CreateRepoOptions struct {
	Name      string
	IsPrivate string
}

CreateRepoOptions holds options for creating a repo.

type DeleteRepoOptions

type DeleteRepoOptions struct {
	Name      string
	IsPrivate string
}

DeleteRepoOptions holds options for deleting a repo.

type GetRepoOptions

type GetRepoOptions struct {
	Name      string
	IsPrivate string
}

GetRepoOptions holds options for fetching repo.

type Repo

type Repo struct {
	URL      string
	Language string
	Stars    int
	Forks    int
}

Repo is struct of a repo that is used in get_repos table view.

func (Repo) RepoString

func (r Repo) RepoString() []string

RepoString converts all the attributes of Repo into an array of strings. Used in appending table in tablewriter.

Jump to

Keyboard shortcuts

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