Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonFlags ¶
type CommonFlags struct {
FlagDir string
}
func (*CommonFlags) Register ¶
func (c *CommonFlags) Register(set *cli.FlagSet)
type GitHubFlags ¶
type GitHubFlags struct { FlagGitHubToken string FlagGitHubOwner string FlagGitHubRepo string FlagGitHubAppID string FlagGitHubAppInstallationID string FlagGitHubAppPrivateKeyPEM string }
GitHubFlags represent the shared GitHub flags among all commands. Embed this struct into any commands that interact with GitHub.
func (*GitHubFlags) Register ¶
func (g *GitHubFlags) Register(set *cli.FlagSet)
func (*GitHubFlags) TokenSource ¶
func (g *GitHubFlags) TokenSource(ctx context.Context, permissions map[string]string) (githubauth.TokenSource, error)
type RetryFlags ¶
type RetryFlags struct { FlagRetryMaxAttempts uint64 FlagRetryInitialDelay time.Duration FlagRetryMaxDelay time.Duration }
RetryFlags represent the shared retry flags among all commands. Embed this struct into any commands that need retries.
func (*RetryFlags) Register ¶
func (r *RetryFlags) Register(set *cli.FlagSet)
Click to show internal directories.
Click to hide internal directories.