Documentation ¶
Index ¶
- type Arguments
- func (a *Arguments) AddArg(options ...string) error
- func (a *Arguments) AddTarget(targets ...string)
- func (a *Arguments) ClearTargets()
- func (a *Arguments) Copy() (cp *Arguments)
- func (a *Arguments) CopyGlobal() *Arguments
- func (a *Arguments) CreateOrAppendOption(option string, values ...string)
- func (a *Arguments) DelArg(options ...string)
- func (a *Arguments) ExistsArg(options ...string) bool
- func (a *Arguments) ExistsDouble(options ...string) bool
- func (a *Arguments) FormatArgs() (args []string)
- func (a *Arguments) FormatGlobals() (args []string)
- func (a *Arguments) GetArg(options ...string) (arg string, double, exists bool)
- func (a *Arguments) GetArgs(option string) (args []string)
- func (a *Arguments) NeedRoot(mode TargetMode) bool
- func (a *Arguments) Parse() error
- func (a *Arguments) String() string
- type Option
- type RebuildMode
- type TargetMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
Arguments Parses command line arguments in a way we can interact with programmatically but also in a way that can easily be passed to pacman later on.
func MakeArguments ¶
func MakeArguments() *Arguments
func (*Arguments) ClearTargets ¶
func (a *Arguments) ClearTargets()
func (*Arguments) CopyGlobal ¶
func (*Arguments) CreateOrAppendOption ¶
func (*Arguments) ExistsDouble ¶
Multiple args acts as an OR operator.
func (*Arguments) FormatArgs ¶
func (*Arguments) FormatGlobals ¶
func (*Arguments) NeedRoot ¶
func (a *Arguments) NeedRoot(mode TargetMode) bool
type RebuildMode ¶ added in v12.1.0
type RebuildMode string
const ( RebuildModeNo RebuildMode = "no" RebuildModeYes RebuildMode = "yes" RebuildModeTree RebuildMode = "tree" RebuildModeAll RebuildMode = "all" )
type TargetMode ¶
type TargetMode int
const ( ModeAny TargetMode = iota ModeAUR ModeRepo )
func (TargetMode) AtLeastAUR ¶
func (mode TargetMode) AtLeastAUR() bool
func (TargetMode) AtLeastRepo ¶
func (mode TargetMode) AtLeastRepo() bool
Click to show internal directories.
Click to hide internal directories.