appflag

package
v8.177.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package appflag holds the flags app create and app installation share and wires the engine they run on the person's laptop.

Index

Constants

View Source
const DefaultTimeout = 10 * time.Minute

DefaultTimeout bounds the wait for each of the person's clicks.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	Vault             string
	Timeout           time.Duration
	GithubTokenEnvVar string
}

Flags are the flags of both commands.

func (*Flags) Env

func (f *Flags) Env(ctx context.Context, stderr io.Writer) (*githubapp.Env, error)

Env is the engine on the person's laptop: their GitHub token, their browser and their 1Password CLI, progress on stderr.

func (*Flags) Init

func (f *Flags) Init(cmd *cobra.Command)

Init declares the flags on cmd.

func (*Flags) Validate

func (f *Flags) Validate(args []string) error

Validate checks the arguments and the flags: one App name, a vault, a positive timeout.

Jump to

Keyboard shortcuts

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