commands

package
v0.0.0-...-b50e879 Latest Latest
Warning

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

Go to latest
Published: May 10, 2016 License: BSD-2-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCommand

type ClientCommand struct {
	Language string
	Dir      string //target dir
	RamlFile string //raml file
}

ClientCommand is executed to generate client from a RAML specification

func (*ClientCommand) Execute

func (command *ClientCommand) Execute() error

Execute generates a client from a RAML specification

type ServerCommand

type ServerCommand struct {
	Language         string // target language
	Dir              string //target dir
	RamlFile         string //raml file
	PackageName      string //package name in the generated go source files
	NoMainGeneration bool   //do not generate a main.go file
	NoAPIDocs        bool   // do not generate API Docs in /apidocs/ endpoint
}

ServerCommand is executed to generate a go server from a RAML specification

func (*ServerCommand) Execute

func (command *ServerCommand) Execute() error

Execute generates a Go server from an RAML specification

type SpecCommand

type SpecCommand struct{}

SpecCommand is executed to generate a RAML specification from a go server

func (*SpecCommand) Execute

func (command *SpecCommand) Execute() error

Execute generates a RAML specification from a go server

Jump to

Keyboard shortcuts

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