Documentation
¶
Index ¶
- func AppendUnique[T comparable](slice []T, elems ...T) []T
- func ComparePaths(path1, path2 string) (bool, error)
- func Contains[T comparable](slice []T, elem T) bool
- func CreateContext(contextItem ContextItem) (context string)
- func ExecuteCommand(program string, args ...string) (string, string, error)
- func FileExists(filePath string) (bool, error)
- func FormatTime(time time.Duration) string
- func GetDefaultCmsisPackRoot() (root string)
- func GetExecutablePath() (string, error)
- func GetInstalledExePath(exeName string) (path string, err error)
- func IsWildcardPattern(str string) bool
- func LogStdMsg(msg string)
- func MatchString(str string, pattern string) (bool, error)
- func NormalizePath(path string) string
- func PrintSeparator(delimiter string, length int)
- func RemoveDuplicates(input []string) []string
- func ResolveContexts(allContext []string, contextFilters []string) ([]string, error)
- func ToRegEx(str string) string
- type CbuildIndex
- type CbuildSet
- type Configurations
- type ContextItem
- type EnvVars
- type Runner
- type RunnerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendUnique ¶
func AppendUnique[T comparable](slice []T, elems ...T) []T
func ComparePaths ¶ added in v2.5.0
checks if two paths are equivalent
func Contains ¶
func Contains[T comparable](slice []T, elem T) bool
func CreateContext ¶
func CreateContext(contextItem ContextItem) (context string)
func ExecuteCommand ¶ added in v2.5.0
This exclusive function returns the standard output and standard error as strings
func FileExists ¶ added in v2.5.0
func FormatTime ¶ added in v2.4.0
func GetDefaultCmsisPackRoot ¶
func GetDefaultCmsisPackRoot() (root string)
func GetExecutablePath ¶
func GetInstalledExePath ¶
func IsWildcardPattern ¶
func NormalizePath ¶
func PrintSeparator ¶ added in v2.5.0
func RemoveDuplicates ¶ added in v2.5.0
func ResolveContexts ¶
Types ¶
type CbuildIndex ¶
type CbuildIndex struct {
BuildIdx struct {
GeneratedBy string `yaml:"generated-by"`
Cdefault string `yaml:"cdefault"`
Csolution string `yaml:"csolution"`
TmpDir string `yaml:"tmpdir"`
Cprojects []struct {
Cproject string `yaml:"cproject"`
} `yaml:"cprojects"`
Licenses interface{} `yaml:"licenses"`
Cbuilds []struct {
Cbuild string `yaml:"cbuild"`
Project string `yaml:"project"`
Configuration string `yaml:"configuration"`
Rebuild bool `yaml:"rebuild"`
} `yaml:"cbuilds"`
Executes []interface{} `yaml:"executes"`
Rebuild bool `yaml:"rebuild"`
} `yaml:"build-idx"`
}
func ParseCbuildIndexFile ¶
func ParseCbuildIndexFile(cbuildIndexFile string) (data CbuildIndex, err error)
type CbuildSet ¶
type CbuildSet struct {
ContextSet struct {
GeneratedBy string `yaml:"generated-by"`
Contexts []struct {
Context string `yaml:"context"`
} `yaml:"contexts"`
Compiler string `yaml:"compiler"`
} `yaml:"cbuild-set"`
}
func ParseCbuildSetFile ¶
type Configurations ¶
func GetInstallConfigs ¶
func GetInstallConfigs() (configs Configurations, err error)
type ContextItem ¶
func ParseContext ¶
func ParseContext(context string) (item ContextItem, err error)
type EnvVars ¶
func UpdateEnvVars ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (Runner) ExecuteCommand ¶
Click to show internal directories.
Click to hide internal directories.