cmd

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const Ast2GraphvizCommandDescription = "" +
	"Read '.native' files and generate graphviz diagrams"
View Source
const FixturesCommandDescription = "" +
	"Generate integration tests' '.native' and '.uast' fixtures from source files"

Variables

This section is empty.

Functions

This section is empty.

Types

type Ast2GraphvizCommand

type Ast2GraphvizCommand struct {
	Args struct {
		SourceFiles []string `positional-arg-name:"sourcefile(s)" required:"true" description:"File(s) with the native AST"`
	} `positional-args:"yes"`
	Output   string `long:"out" short:"o" default:"dot" description:"Output format (dot, svg, png)"`
	TypePred string `long:"type" short:"t" default:"@type" description:"Node type field in native AST"`
	Colors   string `long:"colors" short:"c" default:"colors.yml" description:"File with node color definitions"`
	NoPos    bool   `long:"no-pos" description:"Omit position info"`
	NoNils   bool   `long:"no-nils" description:"Omit nil fields"`
	// contains filtered or unexported fields
}

func (*Ast2GraphvizCommand) Execute

func (c *Ast2GraphvizCommand) Execute(args []string) error

type FixturesCommand

type FixturesCommand struct {
	Args struct {
		SourceFiles []string `positional-arg-name:"sourcefile(s)" required:"true" description:"File(s) with the source code"`
	} `positional-args:"yes"`
	Language  string `long:"language" short:"l" default:"" description:"Language to parse"`
	Endpoint  string `long:"endpoint" short:"e" default:"localhost:9432" description:"Endpoint of the gRPC server to use"`
	ExtNative string `long:"extnative" short:"n" default:"native" description:"File extension for native files"`
	ExtUast   string `long:"extuast" short:"u" default:"uast" description:"File extension for uast files"`
	ExtProto  string `long:"extproto" short:"p" description:"File extenstion for proto message fiels"`
	Quiet     bool   `long:"quiet" short:"q" description:"Don't print any output"`
	// contains filtered or unexported fields
}

func (*FixturesCommand) Execute

func (c *FixturesCommand) Execute(args []string) error

Jump to

Keyboard shortcuts

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