cli

package
v0.0.0-...-0a9b7a7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0, MIT Imports: 14 Imported by: 2

Documentation

Overview

Package cli implements a basic command line interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is the main entrypoint.

Types

type Bundle

type Bundle struct {
	Root   string
	Prefix string
	Filter string
	// contains filtered or unexported fields
}

Bundle implements subcommands.Command for the "bundle" command.

func (*Bundle) Execute

func (b *Bundle) Execute(ctx context.Context, fs *flag.FlagSet, args ...any) subcommands.ExitStatus

Execute implements subcommands.Command.Execute.

func (*Bundle) Name

func (*Bundle) Name() string

Name implements subcommands.Command.Name.

func (*Bundle) SetFlags

func (b *Bundle) SetFlags(fs *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Bundle) Synopsis

func (*Bundle) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Bundle) Usage

func (*Bundle) Usage() string

Usage implements subcommands.Command.Usage.

type Check

type Check struct {
	Package string
	Binary  string
	// contains filtered or unexported fields
}

Check implements subcommands.Command for the "check" command.

func (*Check) Execute

func (c *Check) Execute(ctx context.Context, fs *flag.FlagSet, args ...any) subcommands.ExitStatus

Execute implements subcommands.Command.Execute.

func (*Check) Name

func (*Check) Name() string

Name implements subcommands.Command.Name.

func (*Check) SetFlags

func (c *Check) SetFlags(fs *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Check) Synopsis

func (*Check) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Check) Usage

func (*Check) Usage() string

Usage implements subcommands.Command.Usage.

type Filter

type Filter struct {
	Configs flags.StringList
	Output  string
	Text    bool
	Test    bool
}

Filter implements subcommands.Command for the "filter" command.

func (*Filter) Execute

func (f *Filter) Execute(ctx context.Context, fs *flag.FlagSet, args ...any) subcommands.ExitStatus

Execute implements subcommands.Command.Execute.

func (*Filter) Name

func (*Filter) Name() string

Name implements subcommands.Command.Name.

func (*Filter) SetFlags

func (f *Filter) SetFlags(fs *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Filter) Synopsis

func (*Filter) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Filter) Usage

func (*Filter) Usage() string

Usage implements subcommands.Command.Usage.

type Stdlib

type Stdlib struct {
	// contains filtered or unexported fields
}

Stdlib implements subcommands.Command for the "stdlib" command.

func (*Stdlib) Execute

func (s *Stdlib) Execute(ctx context.Context, fs *flag.FlagSet, args ...any) subcommands.ExitStatus

Execute implements subcommands.Command.Execute.

func (*Stdlib) Name

func (*Stdlib) Name() string

Name implements subcommands.Command.Name.

func (*Stdlib) SetFlags

func (s *Stdlib) SetFlags(fs *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Stdlib) Synopsis

func (*Stdlib) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Stdlib) Usage

func (*Stdlib) Usage() string

Usage implements subcommands.Command.Usage.

Jump to

Keyboard shortcuts

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