lib
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
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¶
funcGetList¶
func GetList(ctxcontext.Context, srvrpc.ArduinoCoreServiceServer, instance *rpc.Instance, args []string, allbool, updatablebool) []*rpc.InstalledLibrary
GetList returns a list of installed libraries.
funcList¶
func List(ctxcontext.Context, srvrpc.ArduinoCoreServiceServer, instance *rpc.Instance, args []string, allbool, updatablebool)
List gets and prints a list of installed libraries.
funcNewCommand¶
func NewCommand(srvrpc.ArduinoCoreServiceServer, defaultSettings *rpc.Configuration) *cobra.Command
NewCommand created a new `lib` command
funcUpdateIndex¶
func UpdateIndex(ctxcontext.Context, srvrpc.ArduinoCoreServiceServer, inst *rpc.Instance) *rpc.UpdateLibrariesIndexResponse_Result
UpdateIndex updates the index of libraries.
Types¶
typeLibraryReferenceArg¶
LibraryReferenceArg is a command line argument that reference a library.
funcParseLibraryReferenceArg¶
func ParseLibraryReferenceArg(argstring) (*LibraryReferenceArg,error)
ParseLibraryReferenceArg parse a command line argument that reference alibrary in the form "LibName@Version" or just "LibName".
funcParseLibraryReferenceArgAndAdjustCase¶
func ParseLibraryReferenceArgAndAdjustCase(ctxcontext.Context, srvrpc.ArduinoCoreServiceServer, instance *rpc.Instance, argstring) (*LibraryReferenceArg,error)
ParseLibraryReferenceArgAndAdjustCase parse a command line argument that reference alibrary and possibly adjust the case of the name to match a library in the index
funcParseLibraryReferenceArgs¶
func ParseLibraryReferenceArgs(args []string) ([]*LibraryReferenceArg,error)
ParseLibraryReferenceArgs is a convenient wrapper that operates on a slice of strings andcalls ParseLibraryReferenceArg for each of them. It returns at the first invalid argument.
funcParseLibraryReferenceArgsAndAdjustCase¶
func ParseLibraryReferenceArgsAndAdjustCase(ctxcontext.Context, srvrpc.ArduinoCoreServiceServer, instance *rpc.Instance, args []string) ([]*LibraryReferenceArg,error)
ParseLibraryReferenceArgsAndAdjustCase is a convenient wrapper that operates on a slice ofstrings and calls ParseLibraryReferenceArgAndAdjustCase for each of them. It returns at the first invalid argument.
func (*LibraryReferenceArg)String¶
func (r *LibraryReferenceArg) String()string