cmd

package
v0.0.10 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()

Types

type App

type App struct {
	Name        string `long:"app-name" description:"Name of application" default:"device-flow-proxy"`
	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"`
	Version     string `long:"version" description:"Version of the application" default:"0.0.0"`

	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"`
}
var Application App

Jump to

Keyboard shortcuts

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