Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(client GitHubClient) *cli.Command
New returns the CLI subcommand for syncing secrets to GitHub repositories. client is the GitHub client injected from the caller; it may be nil only when --dry-run is used (the client is never called in that mode).
Types ¶
type GitHubClient ¶
type GitHubClient interface {
UpsertRepoSecret(ctx context.Context, req gh.UpsertSecretRequest) error
}
GitHubClient is the interface this command requires from the GitHub client. Defined here (caller side) following idiomatic Go interface placement.
Click to show internal directories.
Click to hide internal directories.