Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Pm ¶
type Pm struct { Shell string Sudo bool // Prefix Bin with sudo if not root Bin string // Path to package manager binary Sub []string // Sub command and main options Install interface{} // Install command name Remove interface{} // Remove command name Opts []string // Common pkg manager options InstallOpts []string // Install pkg manager options RemoveOpts []string // Remove pkg manager options DryRunOpts []string // Check mode, do not run if absent // ActOpts []*Opt // Action options // types.HasOS `mapstructure:",squash"` // OS map[string][]string // Platform options // types.HasIf `mapstructure:",squash"` // If map[string][]string // Conditional opts Env map[string]string // Execution environment variables Init func() error // Install manager or prepare bin Has hasFunc // Search local packages // contains filtered or unexported fields }
Pm package manager
func (*Pm) BuildOptions ¶
BuildOptions constructs the command arguments.
Click to show internal directories.
Click to hide internal directories.