plugin

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 16 Imported by: 104

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