cmd

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(name, version, commit, date, tag string)

Types

type App

type App struct {
	Description string `long:"app-description" description:"Description of application" default:"Gives a simple blueprint for creating new api's"`
	Environment string `long:"environment" description:"Environment the application is running in, eg. prod or dev" default:"dev"`

	Log struct {
		Verbose bool   `long:"verbose" short:"v" description:"Verbose logging"`
		Format  string `long:"log-format" description:"Logging format" choice:"json" choice:"plain"`
	}

	Serve   serveCmd   `command:"serve" description:"serves endpoints"`
	Oas     oasCmd     `command:"oas" description:"Retrieve oas document"`
	Version versionCmd `command:"version" description:"Prints the build information from the binary"`
}
var Application App

Jump to

Keyboard shortcuts

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