commands

package
v0.0.0-...-ab5586f Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version for the swagger command
	Version string
)

Functions

This section is empty.

Types

type Generate

type Generate struct {
	Model     *generate.Model     `command:"model"`
	Operation *generate.Operation `command:"operation"`
	Support   *generate.Support   `command:"support"`
	Server    *generate.Server    `command:"server"`
	Spec      *generate.SpecFile  `command:"spec"`
	Client    *generate.Client    `command:"client"`
}

Generate command to group all generator commands together

type InitCmd

type InitCmd struct {
	Model *initcmd.Spec `command:"spec"`
}

InitCmd is a command namespace for initializing things like a swagger spec.

func (*InitCmd) Execute

func (i *InitCmd) Execute(args []string) error

type PrintVersion

type PrintVersion struct {
}

PrintVersion the command

func (*PrintVersion) Execute

func (p *PrintVersion) Execute(args []string) error

Execute this command

type ValidateSpec

type ValidateSpec struct {
}

ValidateSpec is a command that validates a swagger document against the swagger json schema

func (*ValidateSpec) Execute

func (c *ValidateSpec) Execute(args []string) error

Execute validates the spec

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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