cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCommand

type CreateCommand struct {
	*flag.FlagSet
	// contains filtered or unexported fields
}

func NewCreateCommand

func NewCreateCommand(name, summary string) *CreateCommand

func (*CreateCommand) Run

func (c *CreateCommand) Run() error

type GenerateCommand

type GenerateCommand struct {
	*flag.FlagSet
	// contains filtered or unexported fields
}

func NewGenerateCommand

func NewGenerateCommand(name, summary string) *GenerateCommand

func (*GenerateCommand) Run

func (c *GenerateCommand) Run() error

type Runner

type Runner interface {
	Parse([]string) error
	Name() string
	Run() error
}

type VersionCommand

type VersionCommand struct {
	*flag.FlagSet
	// contains filtered or unexported fields
}

func NewVersionCommand

func NewVersionCommand(binaryVersion, buildTime, goVersion, gitCommit, name, summary string) *VersionCommand

func (*VersionCommand) Run

func (c *VersionCommand) Run() error

Jump to

Keyboard shortcuts

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