Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNeedAuth = errors.New("The my command- and all sub commands requires you to be authenticated")
ErrNeedAuth is the error message if an unauthenticated user is trying to access the "my" commands.
Functions ¶
Types ¶
type GistsCmd ¶
type GistsCmd struct { Browser bool `short:"b" long:"browser" description:"Open gists in the browser\n"` Grep []string `short:"g" long:"grep" description:"Grep for gists based on their file name(s) (with RegExp)\nCan be applied multiple times\n"` Limit int `short:"l" long:"limit" description:"Limit the amount of gists to return" default:"50"` }
GistsCmd is the struct for the the gists command.
type IssuesCmd ¶
type IssuesCmd struct { Browser bool `short:"b" long:"browser" description:"Open issues in the browser\n"` State string `` /* 126-byte string literal not displayed */ Grep []string `` /* 132-byte string literal not displayed */ Order string `` /* 142-byte string literal not displayed */ Limit int `short:"l" long:"limit" description:"Limit the amount of issues to return" default:"50"` }
IssuesCmd is the struct for the the issues command.
type MyGistsCmd ¶
type MyGistsCmd struct { Browser bool `short:"b" long:"browser" description:"Open your gists in the browser\n"` Grep []string `short:"g" long:"grep" description:"Grep for gists based on their file name(s) (with RegExp)\nCan be applied multiple times\n"` Limit int `short:"l" long:"limit" description:"Limit the amount of gists to return" default:"50"` }
MyGistsCmd is the struct for the the my gists command.
func (*MyGistsCmd) Execute ¶
func (cmd *MyGistsCmd) Execute(args []string) error
Execute the gists command.
type MyIssuesCmd ¶
type MyIssuesCmd struct { Browser bool `short:"b" long:"browser" description:"Open your issues in the browser\n"` Filter string `` /* 152-byte string literal not displayed */ State string `` /* 126-byte string literal not displayed */ Grep []string `` /* 132-byte string literal not displayed */ Order string `` /* 142-byte string literal not displayed */ Limit int `short:"l" long:"limit" description:"Limit the amount of issues to return" default:"50"` }
MyIssuesCmd is the struct for the the my issues command.
func (*MyIssuesCmd) Execute ¶
func (cmd *MyIssuesCmd) Execute(args []string) error
Execute the issues command.
type MyPullsCmd ¶
type MyPullsCmd struct { Browser bool `short:"b" long:"browser" description:"Open your pull requests in the browser\n"` Filter string `` /* 177-byte string literal not displayed */ State string `` /* 133-byte string literal not displayed */ Grep []string `` /* 139-byte string literal not displayed */ Order string `` /* 165-byte string literal not displayed */ Limit int `short:"l" long:"limit" description:"Limit the amount of pull requests to return" default:"50"` }
MyPullsCmd is the struct for the the my pulls command.
func (*MyPullsCmd) Execute ¶
func (cmd *MyPullsCmd) Execute(args []string) error
Execute the pulls command.
type MyReposCmd ¶
type MyReposCmd struct { Browser bool `short:"b" long:"browser" description:"Open your repositories in the browser\n"` Type string `` /* 146-byte string literal not displayed */ Grep []string `short:"g" long:"grep" description:"Grep for repositories based on their name (with RegExp)\nCan be applied multiple times\n"` Order string `` /* 150-byte string literal not displayed */ Limit int `short:"l" long:"limit" description:"Limit the amount of repositories to return" default:"50"` }
MyReposCmd is the struct for the the my repos command.
func (*MyReposCmd) Execute ¶
func (cmd *MyReposCmd) Execute(args []string) error
Execute the repos command.
type PullsCmd ¶
type PullsCmd struct { Browser bool `short:"b" long:"browser" description:"Open pull requests in the browser\n"` State string `` /* 133-byte string literal not displayed */ Grep []string `` /* 126-byte string literal not displayed */ Order string `` /* 165-byte string literal not displayed */ Limit int `short:"l" long:"limit" description:"Limit the amount of pull requests to return" default:"50"` }
PullsCmd is the struct for the the pulls command.
type ReposCmd ¶
type ReposCmd struct { Browser bool `short:"b" long:"browser" description:"Open repositories in the browser\n"` Type string `` /* 159-byte string literal not displayed */ Visibility string `` /* 171-byte string literal not displayed */ Grep []string `short:"g" long:"grep" description:"Grep for repositories based on their name (with RegExp)\nCan be applied multiple times\n"` Order string `` /* 149-byte string literal not displayed */ Limit int `short:"l" long:"limit" description:"Limit the amount of repositories to return (default: 50)\n"` // Special case: no default value - it will be added in the Execute func. Done to improve the help output. Clone bool `short:"c" long:"clone" description:"Clone non existing GitHub repositories"` Update bool `short:"u" long:"update" description:"Update local git repositories"` }
ReposCmd is the struct for the the repos command.
Click to show internal directories.
Click to hide internal directories.