pkg

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJCLIPluginPath

func GetJCLIPluginPath(userHome, pluginRepoName, name string, binary bool) string

GetJCLIPluginPath returns the path of a jcli plugin

func LoadPlugins

func LoadPlugins(cmd *cobra.Command, pluginOrg, pluginRepo string)

LoadPlugins loads the plugins

Types

type Plugin

type Plugin struct {
	Use          string `yaml:"use"`
	Short        string
	Long         string
	Main         string
	Version      string
	DownloadLink string `yaml:"downloadLink"`
	Installed    bool
}

func FindPlugins

func FindPlugins(pluginOrg, pluginRepo string) (plugins []Plugin, err error)

type PluginError

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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