parsers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsedCommand

type ParsedCommand struct {
	Name   string
	Usage  string
	Flags  string
	Type   string
	FnName string
}

ParsedCommand represents a single Configuration option

type ParsedCommands

type ParsedCommands []ParsedCommand

ParsedCommands represents a set of Configuration options

func ParseCommandDir

func ParseCommandDir(path string) (ParsedCommands, error)

ParseCommandDir parses a folder for go files with Configuration options

func ParseCommandFile

func ParseCommandFile(path string) (ParsedCommands, error)

ParseCommandFile parses a single go file for Configuration options

type ParsedOption

type ParsedOption struct {
	Name    string
	Env     []string
	Usage   string
	Default string
	FnName  string
}

ParsedOption represents a single Configuration option

type ParsedOptions

type ParsedOptions []ParsedOption

ParsedOptions represents a set of Configuration options

func ParseFlagsetDir

func ParseFlagsetDir(path string) (ParsedOptions, error)

ParseFlagsetDir parses a folder for go files with Configuration options

func ParseFlagsetFile

func ParseFlagsetFile(path string) (ParsedOptions, error)

ParseFlagsetFile parses a single go file for Configuration options

Jump to

Keyboard shortcuts

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