mirror of
https://github.com/drone/drone-cli.git
synced 2024-11-22 17:01:58 +01:00
Merge pull request #184 from tkushnir/add-missing-ctx-values
Add missing ctx values
This commit is contained in:
commit
691e2de01e
@ -111,6 +111,18 @@ var Command = cli.Command{
|
||||
Name: "build.title",
|
||||
Usage: "build title",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "build.link",
|
||||
Usage: "build link",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "build.environment",
|
||||
Usage: "build environment",
|
||||
},
|
||||
cli.BoolTFlag{
|
||||
Name: "build.debug",
|
||||
Usage: "debug build",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -159,6 +171,9 @@ func generate(c *cli.Context) error {
|
||||
"commit": starlark.String(c.String("build.commit")),
|
||||
"message": starlark.String(c.String("build.message")),
|
||||
"title": starlark.String(c.String("build.title")),
|
||||
"link": starlark.String(c.String("build.link")),
|
||||
"environment": starlark.String(c.String("build.environment")),
|
||||
"debug": starlark.Bool(c.Bool("build.debug")),
|
||||
}
|
||||
|
||||
args := starlark.Tuple([]starlark.Value{
|
||||
|
Loading…
Reference in New Issue
Block a user