Documentation ¶
Index ¶
- func GetList(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, ...) []*rpc.InstalledLibrary
- func List(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, ...)
- func NewCommand(srv rpc.ArduinoCoreServiceServer, defaultSettings *rpc.Configuration) *cobra.Command
- func UpdateIndex(ctx context.Context, srv rpc.ArduinoCoreServiceServer, inst *rpc.Instance) *rpc.UpdateLibrariesIndexResponse_Result
- func Upgrade(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, ...)
- type LibraryReferenceArg
- func ParseLibraryReferenceArg(arg string) (*LibraryReferenceArg, error)
- func ParseLibraryReferenceArgAndAdjustCase(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, ...) (*LibraryReferenceArg, error)
- func ParseLibraryReferenceArgs(args []string) ([]*LibraryReferenceArg, error)
- func ParseLibraryReferenceArgsAndAdjustCase(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, ...) ([]*LibraryReferenceArg, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetList ¶
func GetList(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, args []string, all bool, updatable bool) []*rpc.InstalledLibrary
GetList returns a list of installed libraries.
func List ¶
func List(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, args []string, all bool, updatable bool)
List gets and prints a list of installed libraries.
func NewCommand ¶
func NewCommand(srv rpc.ArduinoCoreServiceServer, defaultSettings *rpc.Configuration) *cobra.Command
NewCommand created a new `lib` command
func UpdateIndex ¶
func UpdateIndex(ctx context.Context, srv rpc.ArduinoCoreServiceServer, inst *rpc.Instance) *rpc.UpdateLibrariesIndexResponse_Result
UpdateIndex updates the index of libraries.
Types ¶
type LibraryReferenceArg ¶
LibraryReferenceArg is a command line argument that reference a library.
func ParseLibraryReferenceArg ¶
func ParseLibraryReferenceArg(arg string) (*LibraryReferenceArg, error)
ParseLibraryReferenceArg parse a command line argument that reference a library in the form "LibName@Version" or just "LibName".
func ParseLibraryReferenceArgAndAdjustCase ¶
func ParseLibraryReferenceArgAndAdjustCase(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, arg string) (*LibraryReferenceArg, error)
ParseLibraryReferenceArgAndAdjustCase parse a command line argument that reference a library and possibly adjust the case of the name to match a library in the index
func ParseLibraryReferenceArgs ¶
func ParseLibraryReferenceArgs(args []string) ([]*LibraryReferenceArg, error)
ParseLibraryReferenceArgs is a convenient wrapper that operates on a slice of strings and calls ParseLibraryReferenceArg for each of them. It returns at the first invalid argument.
func ParseLibraryReferenceArgsAndAdjustCase ¶
func ParseLibraryReferenceArgsAndAdjustCase(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, args []string) ([]*LibraryReferenceArg, error)
ParseLibraryReferenceArgsAndAdjustCase is a convenient wrapper that operates on a slice of strings and calls ParseLibraryReferenceArgAndAdjustCase for each of them. It returns at the first invalid argument.
func (*LibraryReferenceArg) String ¶
func (r *LibraryReferenceArg) String() string