plugin

package
v0.0.0-...-f9c27df Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 15 Imported by: 0

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