cmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package cmd implements the command line interface for gqlc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFS added in v0.4.0

func WithFS(fs afero.Fs) option

WithFS configures the underlying afero.FS used to read/write files.

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

Jump to

Keyboard shortcuts

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