Documentation ¶
Index ¶
- func AppendNewLinesOnly(text, newText string) (returnText string)
- func AptListInstalled(withVersion bool) (reqs string)
- func BrewListInstalled() string
- func DnfListInstalled(withVersion bool) (reqs string)
- func FatalCheck(err error)
- func FindNpmPackageDirs(dir string, recurse bool) (packageDirs []string)
- func GetAptSources() (out string)
- func GetBrewTaps() string
- func GetNpmRequirements(dir string, recurse bool) (text string)
- func GetNpmRequirementsMultipleDirs(dirPaths []string, recurse bool) (reqs string)
- func GetPip3Requirements(dirPath string, recurse bool) (text string)
- func GetPip3RequirementsMultipleDirs(dirPaths []string, recurse bool) (reqs string)
- func GetPipRequirements(dirPath string, recurse bool) (text string)
- func GetPipRequirementsMultipleDirs(dirPaths []string, recurse bool) (reqs string)
- func GetRequirementFilenames(dirPath string, recurse bool) (fileNames []string)
- func InstallHomebrew()
- func IsCommandAvailable(name string) bool
- func NewLineIfNotEmpty(text, newText string) string
- func NpmInstall(requirements, dir string, sudo, global, quiet bool)
- func PipInstall(requirements, pipPath string, sudo, upgrade, quiet bool)
- func StdoutReqsYml(yml map[string][]string)
- func StringContainedInSlice(s string, arr []string) bool
- func StringInSlice(a string, list []string) bool
- type PackageConfig
- type RequirementsParser
- func (rp RequirementsParser) FindNpmPackageDirs() (packageDirs []string)
- func (rp RequirementsParser) GenerateReqsYml() map[string][]string
- func (rp RequirementsParser) ListInstalled(packageTool string) (requirements string)
- func (rp RequirementsParser) Parse() (sudo, packageTool, autoYes, reqs string)
- func (rp RequirementsParser) ParseNpm() (reqs string)
- func (rp RequirementsParser) ParsePip() (reqs string)
- func (rp RequirementsParser) ParsePip3() (reqs string)
- type VagrantSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendNewLinesOnly ¶ added in v0.2.7
func AptListInstalled ¶ added in v0.4.0
func BrewListInstalled ¶ added in v0.4.0
func BrewListInstalled() string
func DnfListInstalled ¶ added in v0.4.0
func FatalCheck ¶
func FatalCheck(err error)
func FindNpmPackageDirs ¶ added in v0.4.0
func GetAptSources ¶ added in v0.4.0
func GetAptSources() (out string)
func GetBrewTaps ¶ added in v0.4.0
func GetBrewTaps() string
func GetNpmRequirements ¶ added in v0.4.0
func GetNpmRequirementsMultipleDirs ¶ added in v0.4.0
func GetPip3Requirements ¶ added in v0.4.0
func GetPip3RequirementsMultipleDirs ¶ added in v0.4.0
func GetPipRequirements ¶ added in v0.4.0
func GetPipRequirementsMultipleDirs ¶ added in v0.4.0
func GetRequirementFilenames ¶ added in v0.4.0
func InstallHomebrew ¶ added in v0.4.0
func InstallHomebrew()
func IsCommandAvailable ¶ added in v0.2.7
func NewLineIfNotEmpty ¶ added in v0.2.7
func NpmInstall ¶ added in v0.2.9
func PipInstall ¶ added in v0.2.7
pip install given requirements, optionally --upgrade as well
func StdoutReqsYml ¶ added in v0.2.9
func StringContainedInSlice ¶ added in v0.2.7
func StringInSlice ¶ added in v0.2.7
Types ¶
type PackageConfig ¶
func (PackageConfig) Install ¶
func (pc PackageConfig) Install(upgrade bool)
func (PackageConfig) Update ¶
func (pc PackageConfig) Update()
func (PackageConfig) Upgrade ¶
func (pc PackageConfig) Upgrade()
type RequirementsParser ¶
type RequirementsParser struct {
Dir, File string
UseStdout, UseStdin bool
WithVersion bool
Recurse bool
Sources bool
}
func (RequirementsParser) FindNpmPackageDirs ¶ added in v0.3.1
func (rp RequirementsParser) FindNpmPackageDirs() (packageDirs []string)
func (RequirementsParser) GenerateReqsYml ¶ added in v0.2.9
func (rp RequirementsParser) GenerateReqsYml() map[string][]string
TODO: check the exist reqs.yml in current directory if one exists and merge the results together, removing duplicate entries check the currently installed packages for system and/or pip deps and return the string for a reqs.yml
func (RequirementsParser) ListInstalled ¶ added in v0.2.1
func (rp RequirementsParser) ListInstalled(packageTool string) (requirements string)
func (RequirementsParser) Parse ¶
func (rp RequirementsParser) Parse() (sudo, packageTool, autoYes, reqs string)
determine package tool and args on this system
func (RequirementsParser) ParseNpm ¶ added in v0.3.1
func (rp RequirementsParser) ParseNpm() (reqs string)
func (RequirementsParser) ParsePip ¶ added in v0.2.7
func (rp RequirementsParser) ParsePip() (reqs string)
func (RequirementsParser) ParsePip3 ¶ added in v0.4.0
func (rp RequirementsParser) ParsePip3() (reqs string)
type VagrantSystem ¶ added in v0.4.0
type VagrantSystem struct {
Arch, Status string
}
func (VagrantSystem) Down ¶ added in v0.4.0
func (vm VagrantSystem) Down()
func (VagrantSystem) Run ¶ added in v0.4.0
func (vm VagrantSystem) Run(cmdStr string) error
func (VagrantSystem) Up ¶ added in v0.4.0
func (vm VagrantSystem) Up()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.