command

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package command provides handling to generate new scaffolding, compile, and publish CLI plugins.

Package command provides handling to generate new scaffolding, compile, and publish CLI plugins.

Index

Constants

View Source
const AllTargets cli.Arch = "all"

AllTargets are all the known targets.

Variables

This section is empty.

Functions

func AddPlugin

func AddPlugin(name, description string, dryRun bool) error

AddPlugin generates the skeleton for a new plugin.

func Compile

func Compile(compileArgs *PluginCompileArgs) error

func Initialize

func Initialize(name, repoType string, dryRun bool) error

func PublishPlugins

func PublishPlugins(publishArgs *PublishArgs) error

Types

type PluginCompileArgs

type PluginCompileArgs struct {
	Version       string
	SourcePath    string
	ArtifactsDir  string
	LDFlags       string
	Tags          string
	Match         string
	Description   string
	GoPrivate     string
	TargetArch    []string
	GroupByOSArch bool
}

PluginCompileArgs contains the values to use for compiling plugins.

type PublishArgs

type PublishArgs struct {
	DistroType                     string
	PluginsString                  string
	OSArch                         string
	InputArtifactDir               string
	LocalOutputDiscoveryDir        string
	LocalOutputDistribtionDir      string
	OCIDiscoverImage               string
	OCIDistributionImageRepository string
	RecommendedVersion             string
}

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