plugin

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: GPL-3.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VarStringPlugin describes a plugin.
	VarStringPlugin string
	// VarStringDir describes a directory.
	VarStringDir string
	// VarStringAPI describes an API file.
	VarStringAPI string
	// VarStringStyle describes a style.
	VarStringStyle string
)

Functions

func PluginCommand

func PluginCommand(_ *cobra.Command, _ []string) error

PluginCommand is the entry of goctl api plugin

Types

type Plugin

type Plugin struct {
	Api         *spec.ApiSpec
	ApiFilePath string
	Style       string
	Dir         string
}

Plugin defines an api plugin

func NewPlugin

func NewPlugin() (*Plugin, error)

NewPlugin returns contextual resources when written in other languages

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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