Documentation ¶
Overview ¶
Package cmd implements the command line interface for gqlc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandLine ¶ added in v0.4.0
type CommandLine struct {
// contains filtered or unexported fields
}
CommandLine provides a convient API for adding generators to gqlc.
func NewCLI ¶
func NewCLI(opts ...option) (c *CommandLine)
NewCLI returns a CommandLine implementation.
func (*CommandLine) AllowPlugins ¶ added in v0.4.0
func (c *CommandLine) AllowPlugins(prefix string)
AllowPlugins sets the plugin prefix to be used when looking up plugin executables.
func (*CommandLine) RegisterGenerator ¶ added in v0.4.0
func (c *CommandLine) RegisterGenerator(g gen.Generator, name, opt, help string)
RegisterGenerator registers a generator with the compiler.
func (*CommandLine) Run ¶ added in v0.4.0
func (c *CommandLine) Run(args []string) (err error)
Run executes the compiler
Click to show internal directories.
Click to hide internal directories.