Documentation ¶
Overview ¶
Package exe defines QoL functions to simplify and unify creating executables
Index ¶
- Variables
- func InputDirFlag(k *kingpin.Application, doc string) *string
- func InputFlag(k *kingpin.Application, doc string) *string
- func InputStringFlag(k *kingpin.Application, doc string) *string
- func OutputDirFlag(k *kingpin.Application, doc string) *string
- func OutputFlag(k *kingpin.Application, doc string) *string
- func ParseListArgument(input string) (results []string)
- func PlaceHolderize(thing []string) string
- func SetupLogFlags(k *kingpin.Application) *logger.LogFlags
- type ProfileFlags
Constants ¶
This section is empty.
Variables ¶
var ToolkitVersion = ""
ToolkitVersion specifies the version of the toolkit and the reported version of all tools in it.
Functions ¶
func InputDirFlag ¶
InputDirFlag registers an input flag for k with documentation doc and returns the passed value
func InputFlag ¶
InputFlag registers an input flag for k with documentation doc and returns the passed value
func InputStringFlag ¶
InputStringFlag registers an input flag for k with documentation doc and returns the passed value
func OutputDirFlag ¶
OutputDirFlag registers an output flag for k with documentation doc and returns the passed value
func OutputFlag ¶
OutputFlag registers an output flag for k with documentation doc and returns the passed value
func ParseListArgument ¶
ParseListArgument takes a user provided string list that is space seperated and returns a slice of the split and trimmed elements.
func PlaceHolderize ¶
PlaceHolderize takes a list of available inputs and returns a corresponding placeholder
func SetupLogFlags ¶
Types ¶
type ProfileFlags ¶
type ProfileFlags struct { EnableCpuProf *bool EnableMemProf *bool EnableTrace *bool CpuProfFile *string MemProfFile *string TraceFile *string }
func SetupProfileFlags ¶
func SetupProfileFlags(k *kingpin.Application) *ProfileFlags