lib

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

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

UpdateIndex updates the index of libraries.

func Upgrade

func Upgrade(ctx context.Context, srv rpc.ArduinoCoreServiceServer, instance *rpc.Instance, libraries []string)

Upgrade upgrades the specified libraries

Types

type LibraryReferenceArg

type LibraryReferenceArg struct {
	Name    string
	Version string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy