uhppoted

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 6 Imported by: ? 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Name() string
	FlagSet() *flag.FlagSet
	Execute(...any) error
	Description() string
	Usage() string
	Help()
}

func Parse

func Parse(cli []Command, run Command, help Command) (Command, error)

type CommandExt

type CommandExt interface {
	ParseCmd(args ...string) error
}

type Config

type Config struct {
	Application string
	Config      string
	// contains filtered or unexported fields
}

func (*Config) Description

func (cmd *Config) Description() string

func (*Config) Execute

func (cmd *Config) Execute(args ...any) error

func (*Config) FlagSet

func (cmd *Config) FlagSet() *flag.FlagSet

func (*Config) Help

func (cmd *Config) Help()

func (*Config) Name

func (cmd *Config) Name() string

func (*Config) Usage

func (cmd *Config) Usage() string

type HelpV

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

func NewHelp

func NewHelp(service string, cli []Command, run Command) *HelpV

func (*HelpV) Description

func (h *HelpV) Description() string

func (*HelpV) Execute

func (h *HelpV) Execute(args ...any) error

func (*HelpV) FlagSet

func (h *HelpV) FlagSet() *flag.FlagSet

func (*HelpV) Help

func (h *HelpV) Help()

func (*HelpV) Name

func (h *HelpV) Name() string

func (*HelpV) Usage

func (h *HelpV) Usage() string

type Version

type Version struct {
	Application string
	Version     string
}

func (*Version) Configure

func (cmd *Version) Configure(c map[string]any)

func (*Version) Description

func (cmd *Version) Description() string

func (*Version) Execute

func (cmd *Version) Execute(args ...any) error

func (*Version) FlagSet

func (cmd *Version) FlagSet() *flag.FlagSet

func (*Version) Help

func (cmd *Version) Help()

func (*Version) Name

func (cmd *Version) Name() string

func (*Version) Usage

func (cmd *Version) Usage() string

Jump to

Keyboard shortcuts

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