Documentation ¶
Index ¶
- func AppendUnique[T comparable](slice []T, elems ...T) []T
- func Contains[T comparable](slice []T, elem T) bool
- func CreateContext(contextItem ContextItem) (context string)
- func GetDefaultCmsisPackRoot() (root string)
- func GetExecutablePath() (string, error)
- func GetInstalledExePath(exeName string) (path string, err error)
- func GetProjectName(csolutionFile string) (projectName string, err error)
- func IsWildcardPattern(str string) bool
- func MatchString(str string, pattern string) (bool, error)
- func NormalizePath(path string) string
- func RemoveVersionRange(str string) string
- func ResolveContexts(allContext []string, contextFilters []string) ([]string, error)
- func ToRegEx(str string) string
- type CSolution
- 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 Contains ¶
func Contains[T comparable](slice []T, elem T) bool
func CreateContext ¶
func CreateContext(contextItem ContextItem) (context string)
func GetDefaultCmsisPackRoot ¶
func GetDefaultCmsisPackRoot() (root string)
func GetExecutablePath ¶
func GetInstalledExePath ¶
func GetProjectName ¶
func IsWildcardPattern ¶
func NormalizePath ¶
func RemoveVersionRange ¶
func ResolveContexts ¶
Types ¶
type CSolution ¶
type CSolution struct { Solution struct { TargetTypes []struct { Type string `yaml:"type"` } `yaml:"target-types"` BuildTypes []struct { Type string `yaml:"type"` } `yaml:"build-types"` } `yaml:"solution"` }
func ParseCSolutionFile ¶
type CbuildIndex ¶
type CbuildIndex struct { BuildIdx struct { GeneratedBy string `yaml:"generated-by"` Cdefault string `yaml:"cdefault"` Csolution string `yaml:"csolution"` Cprojects []struct { Cproject string `yaml:"cproject"` } `yaml:"cprojects"` Licenses interface{} `yaml:"licenses"` Cbuilds []struct { Cbuild string `yaml:"cbuild"` Project string `json:"project"` Configuration string `json:"configuration"` } `yaml:"cbuilds"` } `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.