config

package
v0.0.0-...-d479fe0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET    string = "GET"
	POST   string = "POST"
	PUT    string = "PUT"
	DELETE string = "DELETE"
)

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(p []Prompt, fname string) bool

Types

type Api

type Api struct {
	Method string `json: "method"`
	Url    string `json: "url"`
}

type Command

type Command struct {
	Command string   `json: "command"`
	Message string   `json: "message"`
	Prompts []Prompt `json: "prompts"`
	Api     Api      `json: "api"`
	Print   Print    `json: "print"`
}

type Config

type Config struct {
	OutFile  string    `json: "outfile"`
	Greeting string    `json: "greeting"`
	Style    []string  `json: "style"`
	Commands []Command `json: "commands"`
}

func Configure

func Configure(data []byte) (Config, error)

type Print

type Print struct {
	Json   bool `json: "json"`
	Header bool `json: "header"`
	Query  bool `json: "query"`
}

type Prompt

type Prompt struct {
	Prompt string `json: "prompt"`
	Mask   bool   `json: mask`
	Json   string `json: "json"`
	Header string `json: "header"`
	Query  string `json: "query"`
}

Jump to

Keyboard shortcuts

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