cli

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: BSD-3-Clause Imports: 15 Imported by: 0

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

func Execute

func Execute() error

Execute is starting the execution of the CLI application.

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.

func (*GistsCmd) Execute

func (cmd *GistsCmd) Execute(args []string) error

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

func (*IssuesCmd) Execute

func (cmd *IssuesCmd) Execute(args []string) error

Execute the issues command.

type MyCmd

type MyCmd struct{}

MyCmd is the struct for the my command.

func (*MyCmd) Execute

func (cmd *MyCmd) Execute(args []string) error

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

func (*PullsCmd) Execute

func (cmd *PullsCmd) Execute(args []string) error

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

func (*ReposCmd) Execute

func (cmd *ReposCmd) Execute(args []string) error

Execute the repositories command.

Jump to

Keyboard shortcuts

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