Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = cli.Command{ Name: "script", Usage: "generate .drone.yml from script", ArgsUsage: "[path/to/.drone.script]", Action: func(c *cli.Context) { if err := generate(c); err != nil { log.Fatalln(err) } }, Flags: []cli.Flag{ cli.StringFlag{ Name: "source", Usage: "Source file", Value: ".drone.script", }, cli.StringFlag{ Name: "target", Usage: "target file", Value: ".drone.yml", }, cli.BoolTFlag{ Name: "format", Usage: "Write output as formatted YAML", }, cli.BoolFlag{ Name: "stdout", Usage: "Write output to stdout", }, cli.StringFlag{ Name: "repo.name", Usage: "repository name", }, cli.StringFlag{ Name: "repo.namespace", Usage: "repository namespace", }, cli.StringFlag{ Name: "repo.slug", Usage: "repository slug", }, cli.StringFlag{ Name: "build.event", Usage: "build event", Value: "push", }, cli.StringFlag{ Name: "build.branch", Usage: "build branch", Value: "master", }, cli.StringFlag{ Name: "build.source", Usage: "build source branch", Value: "master", }, cli.StringFlag{ Name: "build.target", Usage: "build target branch", Value: "master", }, cli.StringFlag{ Name: "build.ref", Usage: "build ref", Value: "refs/heads/master", }, cli.StringFlag{ Name: "build.commit", Usage: "build commit sha", }, cli.StringFlag{ Name: "build.message", Usage: "build commit message", }, }, }
Command exports the jsonnet command.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.