app

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultAliasesHelp

func GetDefaultAliasesHelp() string

GetDefaultAliasesHelp - return string of default aliases and bundles set for description of commands

func LoadAliasesFromFlags

func LoadAliasesFromFlags(outIo, errIo io.Writer, aliasesFile, addAliasesFile string) bool

LoadAliasesFromFlags - load aliases and bundles set from parameters from command line

func StartCommand

func StartCommand(
	outIo io.Writer,
	errIo io.Writer,
	pn string,
	verboseLevel int,
	isSoft bool,
) (workingDir string, ok bool)

StartCommand - executes gost start command

Types

type GoGetModules

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

GoGetModules - executor for gost mod command

func (*GoGetModules) AsSoftLaunch

func (g *GoGetModules) AsSoftLaunch() *GoGetModules

AsSoftLaunch - prepare executor to soft launch

func (*GoGetModules) Run

func (g *GoGetModules) Run(names []string, aliases ModAliases)

Run - runs executor

func (*GoGetModules) SetThreads added in v1.1.0

func (g *GoGetModules) SetThreads(threads int)

SetThreads - set number of threads for executor

func (*GoGetModules) VerboseLevel

func (g *GoGetModules) VerboseLevel(v int) *GoGetModules

VerboseLevel - set verbose level of output (0 or 1)

type ModAliases

type ModAliases struct {
	Packages map[string]string        `yaml:"packages"`
	Bundles  map[string][]PackageName `yaml:"bundles"`
}

ModAliases - represents aliases and bundles set

func GetAliases

func GetAliases() ModAliases

GetAliases - return current default aliases and bundles set

func (ModAliases) Glue

func (m ModAliases) Glue(src ModAliases) (ModAliases, error)

Glue - glue two ModAliases in one

type PackageName

type PackageName string

PackageName - type for Package Names

Jump to

Keyboard shortcuts

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