Documentation
¶
Index ¶
- Constants
- Variables
- func AddBuildCommands(cmd *cobra.Command)
- func AddCompleteCommands(cmd *cobra.Command)
- func AddDocsCommands(cmd *cobra.Command)
- func AddImageCommands(cmd *cobra.Command)
- func AddManCommands(cmd *cobra.Command)
- func AddMfgCommands(cmd *cobra.Command)
- func AddPackageCommands(cmd *cobra.Command)
- func AddProjectCommands(cmd *cobra.Command)
- func AddRunCommands(cmd *cobra.Command)
- func AddTabCompleteFn(cmd *cobra.Command, cb TabCompleteFn)
- func AddTargetCommands(cmd *cobra.Command)
- func AddValsCommands(cmd *cobra.Command)
- func FormatHelp(text string) string
- func GenerateTabCompleteValues()
- func NewtUsage(cmd *cobra.Command, err error)
- func PackageNameList(pkgs []*pkg.LocalPackage) string
- func PromptYesNo(dflt bool) bool
- func ResetGlobalState() error
- func ResolveMfgPkg(pkgName string) (*pkg.LocalPackage, error)
- func ResolveNewTargetName(name string) (string, error)
- func ResolvePackages(pkgNames []string) ([]*pkg.LocalPackage, error)
- func ResolveRpkgs(res *resolve.Resolution, pkgNames []string) ([]*resolve.ResolvePackage, error)
- func ResolveTarget(name string) *target.Target
- func ResolveTargetOrUnittest(pkgName string) (*target.Target, *pkg.LocalPackage, error)
- func ResolveTargets(names ...string) ([]*target.Target, error)
- func ResolveTargetsOrAll(names ...string) ([]*target.Target, bool, error)
- func ResolveUnittest(pkgName string) (*target.Target, error)
- func TargetBuilderForTargetOrUnittest(pkgName string) (*builder.TargetBuilder, error)
- func TryGetOrDownloadProject() *project.Project
- func TryGetProject() *project.Project
- func VarTypes() []string
- func VarValues(varName string) ([]string, error)
- type TabCompleteFn
Constants ¶
View Source
const MFG_DEFAULT_DIR string = "mfgs"
View Source
const TARGET_DEFAULT_DIR string = "targets"
View Source
const TARGET_KEYWORD_ALL string = "all"
View Source
const TARGET_TEST_NAME = "unittest"
Variables ¶
View Source
var NewTypeStr = "pkg"
Functions ¶
func AddBuildCommands ¶
func AddCompleteCommands ¶
func AddDocsCommands ¶
func AddImageCommands ¶
func AddManCommands ¶
func AddMfgCommands ¶
func AddPackageCommands ¶
func AddProjectCommands ¶
func AddRunCommands ¶
func AddTabCompleteFn ¶
func AddTabCompleteFn(cmd *cobra.Command, cb TabCompleteFn)
func AddTargetCommands ¶
func AddValsCommands ¶
func FormatHelp ¶
Display help text with a max line width of 79 characters
func GenerateTabCompleteValues ¶
func GenerateTabCompleteValues()
func PackageNameList ¶
func PackageNameList(pkgs []*pkg.LocalPackage) string
func PromptYesNo ¶
func ResetGlobalState ¶
func ResetGlobalState() error
func ResolveMfgPkg ¶
func ResolveMfgPkg(pkgName string) (*pkg.LocalPackage, error)
func ResolveNewTargetName ¶
func ResolvePackages ¶
func ResolvePackages(pkgNames []string) ([]*pkg.LocalPackage, error)
func ResolveRpkgs ¶
func ResolveRpkgs(res *resolve.Resolution, pkgNames []string) ( []*resolve.ResolvePackage, error)
func ResolveTarget ¶
func ResolveTargetOrUnittest ¶
@return Target @return LocalPackage The package under test, if any. @return error
func ResolveTargetsOrAll ¶
Resolves a list of target names and checks for the optional "all" keyword among them. Regardless of whether "all" is specified, all target names must be valid, or an error is reported.
@return targets, all (t/f), err
func TargetBuilderForTargetOrUnittest ¶
func TargetBuilderForTargetOrUnittest(pkgName string) ( *builder.TargetBuilder, error)
func TryGetOrDownloadProject ¶
func TryGetProject ¶
Types ¶
type TabCompleteFn ¶
type TabCompleteFn func() []string
Click to show internal directories.
Click to hide internal directories.