cli

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DistributionSpecReferrersTagV1_1 = "v1.1-referrers-tag" // Referrers tag fallback
	DistributionSpecReferrersAPIV1_1 = "v1.1-referrers-api" // Referrers API
)

Variables

This section is empty.

Functions

func AutocompleteFormulae

func AutocompleteFormulae(ctx context.Context, action *actions.Hops) func(s string) []string

AutocompleteFormulae returns an autocompletion function that suggests formula names.

func CompleteInstalledFormulae

func CompleteInstalledFormulae(_ context.Context, action *actions.Hops) func(s string) []string

CompleteInstalledFormulae returns an autocompletion function that suggests formula names.

func NewCLI

func NewCLI(version string) *cobra.Command

NewCLI creates the CLI.

Types

type DistributionSpec added in v0.2.0

type DistributionSpec string

DistributionSpec option struct which implements pflag.Value interface.

Indivates the preference of the implementation of the Referrers API:

  • "v1.1-referrers-api" for referrers API
  • "v1.1-referrers-tag" for referrers tag scheme
  • "" for auto fallback

func (*DistributionSpec) Options added in v0.2.0

func (*DistributionSpec) Options() string

Options returns the string of usable options for the flag.

func (*DistributionSpec) Set added in v0.2.0

func (ds *DistributionSpec) Set(value string) error

Set validates and sets the flag value from a string argument.

func (*DistributionSpec) String added in v0.2.0

func (ds *DistributionSpec) String() string

String returns the string representation of the flag.

func (*DistributionSpec) Type added in v0.2.0

func (*DistributionSpec) Type() string

Type returns the string value of the inner flag.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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