Documentation ¶
Index ¶
- func GetList(instance *rpc.Instance, args []string, all bool, updatable bool) []*rpc.InstalledLibrary
- func List(instance *rpc.Instance, args []string, all bool, updatable bool)
- func NewCommand() *cobra.Command
- func UpdateIndex(inst *rpc.Instance)
- func Upgrade(instance *rpc.Instance, libraries []string)
- type LibraryReferenceArg
- func ParseLibraryReferenceArg(arg string) (*LibraryReferenceArg, error)
- func ParseLibraryReferenceArgAndAdjustCase(instance *rpc.Instance, arg string) (*LibraryReferenceArg, error)
- func ParseLibraryReferenceArgs(args []string) ([]*LibraryReferenceArg, error)
- func ParseLibraryReferenceArgsAndAdjustCase(instance *rpc.Instance, args []string) ([]*LibraryReferenceArg, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetList ¶
func GetList( instance *rpc.Instance, args []string, all bool, updatable bool, ) []*rpc.InstalledLibrary
GetList returns a list of installed 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(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