core

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

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

func NewArguments

func NewArguments(params *param.Arguments, arguments *[]any) *Arguments

func (*Arguments) Cli

func (a *Arguments) Cli() string

func (*Arguments) Rebuild

func (a *Arguments) Rebuild() *Builder

func (*Arguments) String

func (a *Arguments) String() (arguments []string)

type Builder

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

func NewBuilder

func NewBuilder(params *param.Arguments, arguments *[]any) *Builder

func (*Builder) Add

func (b *Builder) Add(args ...any) *Builder

func (*Builder) Argument

func (b *Builder) Argument(key string, value any) *Builder

func (*Builder) Build

func (b *Builder) Build() *Arguments

func (*Builder) Clone

func (b *Builder) Clone() (builder *Builder)

func (*Builder) Flag

func (b *Builder) Flag(flags ...string) *Builder

func (*Builder) Insert

func (b *Builder) Insert(args ...any) *Builder

func (*Builder) Option

func (b *Builder) Option(key string, value any, others ...any) *Builder

func (*Builder) Subcommand

func (b *Builder) Subcommand(subcommand string, subcommands ...string) *Builder

type Creator

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

func NewCreator

func NewCreator() *Creator

func (*Creator) Build

func (c *Creator) Build() *Builder

func (*Creator) Capacity

func (c *Creator) Capacity(capacity int) *Creator

func (*Creator) Equal

func (c *Creator) Equal(placeholder string) *Creator

func (*Creator) Long

func (c *Creator) Long(placeholder string) *Creator

func (*Creator) Short

func (c *Creator) Short(placeholder string) *Creator

Jump to

Keyboard shortcuts

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