command

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package command provides commands for scaffolding new CLI plugins.

Index

Constants

View Source
const AllTargets cli.Arch = "all"

AllTargets are all the known targets.

Variables

View Source
var CLICmd = &cobra.Command{
	Use:   "cli",
	Short: "Build CLIs",
}

CLICmd holds CLI builder commands.

View Source
var CompileCmd = &cobra.Command{
	Use:   "compile",
	Short: "Compile a repository",
	RunE:  compile,
}

CompileCmd compiles CLI plugins

View Source
var PublishCmd = &cobra.Command{
	Use:   "publish",
	Short: "Publish operations",
	RunE:  publishPlugins,
}

PublishCmd publishes plugin resources

Functions

func NewAddPluginCmd

func NewAddPluginCmd() *cobra.Command

NewAddPluginCmd adds a cli plugin to the repository.

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd initializes a repository.

Types

This section is empty.

Directories

Path Synopsis
Package publish implements plugin and plugin api publishing related function
Package publish implements plugin and plugin api publishing related function

Jump to

Keyboard shortcuts

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