commands

package
v0.0.0-...-c8bdcb0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServeCommand

func NewServeCommand() func() (cli.Command, error)

Types

type Arguments

type Arguments struct {
	// DataDirectory defines the path to the directory containing the API Definitions.
	DataDirectory string

	// Port defines the port on which the Data API should be run, this can be set dynamically via the
	// environment variable `PANDORA_API_PORT`.
	Port int

	// ServiceNames optionally defines the set of Services to filter to, meaning only these will be imported.
	ServiceNames *[]string
}

func (*Arguments) Parse

func (a *Arguments) Parse(input []string) error

type ServeCommand

type ServeCommand struct {
}

func (ServeCommand) Help

func (ServeCommand) Help() string

func (ServeCommand) Run

func (c ServeCommand) Run(inputArgs []string) int

func (ServeCommand) Synopsis

func (ServeCommand) Synopsis() string

Jump to

Keyboard shortcuts

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