command

package
v0.0.1-dev Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package command provides commands

Package command provides commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute executes the CLI.

func NewListCmd

func NewListCmd(ps catalog.PluginSupplier) (*cobra.Command, error)

func NewRootCmd

func NewRootCmd(ps catalog.PluginSupplier) (*cobra.Command, error)

NewRootCmd creates a root command.

Types

type FlatDirPluginSupplier

type FlatDirPluginSupplier struct {
	// contains filtered or unexported fields
}

FlatDirPluginSupplier is a naive supplier of plugins based on expecting a flat list of plugin binaries within a single directory. TODO(vuil): To be superceded by a plugin LCM component.

func (*FlatDirPluginSupplier) GetInstalledPlugins

func (s *FlatDirPluginSupplier) GetInstalledPlugins() ([]*cli.PluginInfo, error)

GetInstalledPlugins returns plugins for the supplier.

Jump to

Keyboard shortcuts

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