lib

package
v0.0.0-...-20dd7c9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(instance *rpc.Instance, args []string, all bool, updatable bool)

List lists all the installed libraries.

func NewCommand

func NewCommand() *cobra.Command

NewCommand created a new `lib` command

func UpdateIndex

func UpdateIndex(inst *rpc.Instance)

UpdateIndex updates the index of libraries.

func Upgrade

func Upgrade(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(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(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