flags

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

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