Versions in this module Expand all Collapse all v0 v0.0.1 Dec 11, 2023 Changes in this version + func AddKeyValuePFlag(cmd *cobra.Command, field *map[string]string, name, shorthand string, ...) + func AskForUserFields(userFields []*rpc.UserField) (map[string]string, error) + func CalculateFQBNAndPort(portArgs *Port, fqbnArg *Fqbn, instance *rpc.Instance, ...) (string, *rpc.Port) + func CheckFlagsConflicts(command *cobra.Command, flagNames ...string) + func CheckFlagsMandatory(command *cobra.Command, flagNames ...string) + func GetAvailablePorts() []*rpc.Port + func GetInstallableCores() []string + func GetInstallableLibs() []string + func GetInstalledBoards() []string + func GetInstalledLibraries() []string + func GetInstalledProgrammers() []string + func GetSketchProfiles(sketchPath string) []string + func GetUninstallableCores() []string + func GetUninstallableLibraries() []string + func InitSketchPath(path string, printWarnings bool) (sketchPath *paths.Path) + type DiscoveryTimeout struct + func (d *DiscoveryTimeout) AddToCommand(cmd *cobra.Command) + func (d *DiscoveryTimeout) Get() time.Duration + type Fqbn struct + func (f *Fqbn) AddToCommand(cmd *cobra.Command) + func (f *Fqbn) Set(fqbn string) + func (f *Fqbn) String() string + type Port struct + func (p *Port) AddToCommand(cmd *cobra.Command) + func (p *Port) DetectFQBN(inst *rpc.Instance) (string, *rpc.Port) + func (p *Port) GetPort(instance *rpc.Instance, defaultAddress, defaultProtocol string) (*rpc.Port, error) + func (p *Port) GetPortAddressAndProtocol(instance *rpc.Instance, defaultAddress, defaultProtocol string) (string, string, error) + func (p *Port) GetSearchTimeout() time.Duration + func (p *Port) IsPortFlagSet() bool + type PrePostScriptsFlags struct + func (p *PrePostScriptsFlags) AddToCommand(cmd *cobra.Command) + func (p *PrePostScriptsFlags) DetectSkipPostInstallValue() bool + func (p *PrePostScriptsFlags) DetectSkipPreUninstallValue() bool + func (p *PrePostScriptsFlags) GetRunPostInstall() bool + func (p *PrePostScriptsFlags) GetRunPreUninstall() bool + func (p *PrePostScriptsFlags) GetSkipPostInstall() bool + func (p *PrePostScriptsFlags) GetSkipPreUninstall() bool + type Profile struct + func (f *Profile) AddToCommand(cmd *cobra.Command) + func (f *Profile) Get() string + func (f *Profile) Set(profile string) + func (f *Profile) String() string + type Programmer struct + func (p *Programmer) AddToCommand(cmd *cobra.Command) + func (p *Programmer) String(inst *commands.Instance, fqbn string) string + type Reference struct + Architecture string + PackageName string + Version string + func ParseReference(arg string) (*Reference, error) + func ParseReferences(args []string) ([]*Reference, error) + func (r *Reference) String() string + type ShowProperties struct + func (p *ShowProperties) AddToCommand(command *cobra.Command) + func (p *ShowProperties) Get() (ShowPropertiesMode, error) + type ShowPropertiesMode int + const ShowPropertiesDisabled + const ShowPropertiesExpanded + const ShowPropertiesUnexpanded