Documentation ¶
Index ¶
Constants ¶
View Source
const Ast2GraphvizCommandDescription = "" +
"Read '.native' files and generate graphviz diagrams"
View Source
const BuildCommandDescription = "builds the driver"
View Source
const InfoCommandDescription = "prints info about the driver"
View Source
const InitCommandDescription = "initializes a driver for a given language and OS"
View Source
const PushCommandDescription = "push driver image to docker registry (CI only)"
View Source
const ReleaseCommandDescription = "prepare driver for the release"
View Source
const TagCommandDescription = "returns a version tag for the driver"
View Source
const TestCommandDescription = "tests the driver using fixtures"
View Source
const UpdateCommandDescription = "updates an already initialized driver"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ast2GraphvizCommand ¶ added in v2.3.0
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 ¶ added in v2.3.0
func (c *Ast2GraphvizCommand) Execute(args []string) error
type BuildCommand ¶
func (*BuildCommand) Execute ¶
func (c *BuildCommand) Execute(args []string) error
type InfoCommand ¶ added in v2.4.0
func (*InfoCommand) Execute ¶ added in v2.4.0
func (c *InfoCommand) Execute(args []string) error
type InitCommand ¶
type InitCommand struct { Args struct { Language string `positional-arg-name:"language" description:"target language of the driver"` } `positional-args:"yes"` UpdateCommand }
func (*InitCommand) Execute ¶
func (c *InitCommand) Execute(args []string) error
type PushCommand ¶
func (*PushCommand) Execute ¶
func (c *PushCommand) Execute(args []string) error
type ReleaseCommand ¶
func (*ReleaseCommand) Execute ¶
func (c *ReleaseCommand) Execute(args []string) error
type TagCommand ¶
func (*TagCommand) Execute ¶
func (c *TagCommand) Execute(args []string) error
type TestCommand ¶
type TestCommand struct { cmd.Command Bblfshd string `long:"bblfshd" description:"bblfshd version to test with"` Bench bool `short:"b" long:"bench" description:"benchmark the driver"` }
TestCommand compares "gold" annotations from driver's ./fixtures directory to the ones produced by bblfsh now.
func (*TestCommand) Execute ¶
func (c *TestCommand) Execute(args []string) error
type UpdateCommand ¶
type UpdateCommand struct { DryRun bool `long:"dry-run" description:"don't writes nothing just checks if something should be written"` cmd.Command }
func (*UpdateCommand) Execute ¶
func (c *UpdateCommand) Execute(args []string) error
func (*UpdateCommand) Options ¶ added in v2.16.0
func (c *UpdateCommand) Options() *build.UpdateOptions
Click to show internal directories.
Click to hide internal directories.