package cli
import "gvisor.dev/gvisor/tools/nogo/cli"
Package cli implements a basic command line interface.
Index ¶
- func Main()
- type Bundle
- func (b *Bundle) Execute(ctx context.Context, fs *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (*Bundle) Name() string
- func (b *Bundle) SetFlags(fs *flag.FlagSet)
- func (*Bundle) Synopsis() string
- func (*Bundle) Usage() string
- type Check
- func (c *Check) Execute(ctx context.Context, fs *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (*Check) Name() string
- func (c *Check) SetFlags(fs *flag.FlagSet)
- func (*Check) Synopsis() string
- func (*Check) Usage() string
- type Filter
- func (f *Filter) Execute(ctx context.Context, fs *flag.FlagSet, args ...any) subcommands.ExitStatus
- func (*Filter) Name() string
- func (f *Filter) SetFlags(fs *flag.FlagSet)
- func (*Filter) Synopsis() string
- func (*Filter) Usage() string
- type Stdlib
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 ¶
Name implements subcommands.Command.Name.
func (*Bundle) SetFlags ¶
SetFlags implements subcommands.Command.SetFlags.
func (*Bundle) Synopsis ¶
Synopsis implements subcommands.Command.Synopsis.
func (*Bundle) Usage ¶
Usage implements subcommands.Command.Usage.
type Check ¶
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 ¶
Name implements subcommands.Command.Name.
func (*Check) SetFlags ¶
SetFlags implements subcommands.Command.SetFlags.
func (*Check) Synopsis ¶
Synopsis implements subcommands.Command.Synopsis.
func (*Check) Usage ¶
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 ¶
Name implements subcommands.Command.Name.
func (*Filter) SetFlags ¶
SetFlags implements subcommands.Command.SetFlags.
func (*Filter) Synopsis ¶
Synopsis implements subcommands.Command.Synopsis.
func (*Filter) Usage ¶
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 ¶
Name implements subcommands.Command.Name.
func (*Stdlib) SetFlags ¶
SetFlags implements subcommands.Command.SetFlags.
func (*Stdlib) Synopsis ¶
Synopsis implements subcommands.Command.Synopsis.
func (*Stdlib) Usage ¶
Usage implements subcommands.Command.Usage.
Source Files ¶
cli.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 4 hours ago –
Tools for package owners.