cmd

package
v0.9.26 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListExtensions added in v0.6.1

func ListExtensions(extensionRoot string) (map[string]*ExtensionManifest, error)

func NewCmdArgParse added in v0.9.26

func NewCmdArgParse() *cobra.Command

func NewCmdRoot added in v0.9.25

func NewCmdRoot(version string) (*cobra.Command, error)

func NewCmdRun

func NewCmdRun(extensionDir string) *cobra.Command

func NewExtensionBrowseCmd added in v0.6.1

func NewExtensionBrowseCmd(extensionRoot string) *cobra.Command

func NewExtensionCmd added in v0.6.1

func NewExtensionCmd(extensionRoot string, extensions map[string]*ExtensionManifest) *cobra.Command

func NewExtensionCreateCmd added in v0.6.1

func NewExtensionCreateCmd() *cobra.Command

func NewExtensionExecCmd added in v0.6.1

func NewExtensionExecCmd(extensionRoot string, extensionName string, manifest *ExtensionManifest) *cobra.Command

func NewExtensionInstallCmd added in v0.6.1

func NewExtensionInstallCmd(extensionRoot string) *cobra.Command

func NewExtensionListCmd added in v0.6.1

func NewExtensionListCmd(extensionRoot string, extensions map[string]*ExtensionManifest) *cobra.Command

func NewExtensionManageCmd added in v0.6.1

func NewExtensionManageCmd(extensionRoot string) *cobra.Command

func NewExtensionRemoveCmd added in v0.6.1

func NewExtensionRemoveCmd(extensionRoot string, extensions map[string]*ExtensionManifest) *cobra.Command

func NewExtensionRenameCmd added in v0.7.0

func NewExtensionRenameCmd(extensionRoot string, extensions map[string]*ExtensionManifest) *cobra.Command

func NewExtensionUpgradeCmd added in v0.6.1

func NewExtensionUpgradeCmd(extensionRoot string, extensions map[string]*ExtensionManifest) *cobra.Command

func NewFetchCmd added in v0.9.23

func NewFetchCmd() *cobra.Command

func NewInfoCmd added in v0.9.19

func NewInfoCmd(extensionRoot string, version string) *cobra.Command

func NewQueryCmd added in v0.3.0

func NewQueryCmd() *cobra.Command

func NewReadCmd added in v0.2.5

func NewReadCmd() *cobra.Command

func NewRequireCmd added in v0.9.26

func NewRequireCmd() *cobra.Command

func NewTriggerCmd added in v0.9.0

func NewTriggerCmd() *cobra.Command

func NewValidateCmd added in v0.4.1

func NewValidateCmd() *cobra.Command

func Run added in v0.9.23

func Run(generator internal.PageGenerator) error

Types

type ExtensionManifest added in v0.9.0

type ExtensionManifest struct {
	Type        ExtensionType `json:"type"`
	Entrypoint  string        `json:"entrypoint"`
	Description string        `json:"description"`
	Remote      string        `json:"remote,omitempty"`
	Version     string        `json:"version,omitempty"`
	Pinned      bool          `json:"pinned,omitempty"`
}

func ReadManifest added in v0.9.23

func ReadManifest(manifestPath string) (*ExtensionManifest, error)

func (*ExtensionManifest) PrettyVersion added in v0.9.25

func (m *ExtensionManifest) PrettyVersion() string

func (*ExtensionManifest) Write added in v0.9.23

func (m *ExtensionManifest) Write(manifestPath string) error

type ExtensionType added in v0.9.23

type ExtensionType string
const (
	ExtensionTypeBinary ExtensionType = "binary"
	ExtensionTypeGit    ExtensionType = "git"
	ExtensionTypeGist   ExtensionType = "gist"
	ExtentionTypeLocal  ExtensionType = "local"
)

Jump to

Keyboard shortcuts

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