mirror of
https://github.com/drone/drone-cli.git
synced 2024-11-23 01:11:57 +01:00
fix lack of colors in drone exec output
This commit is contained in:
parent
d32315e667
commit
9de573c558
@ -70,6 +70,10 @@ var Command = cli.Command{
|
|||||||
Name: "trusted",
|
Name: "trusted",
|
||||||
Usage: "build is trusted",
|
Usage: "build is trusted",
|
||||||
},
|
},
|
||||||
|
cli.BoolTFlag{
|
||||||
|
Name: "pretty",
|
||||||
|
Usage: "enable pretty printing",
|
||||||
|
},
|
||||||
cli.DurationFlag{
|
cli.DurationFlag{
|
||||||
Name: "timeout",
|
Name: "timeout",
|
||||||
Usage: "build timeout",
|
Usage: "build timeout",
|
||||||
|
@ -47,12 +47,12 @@ type execCommand struct {
|
|||||||
PrivateKey string
|
PrivateKey string
|
||||||
}
|
}
|
||||||
|
|
||||||
func mapOldToExecCommand(input *cli.Context) (returnVal *execCommand) {
|
func mapOldToExecCommand(input *cli.Context) *execCommand {
|
||||||
pipelineFile := input.Args().First()
|
pipelineFile := input.Args().First()
|
||||||
if pipelineFile == "" {
|
if pipelineFile == "" {
|
||||||
pipelineFile = ".drone.yml"
|
pipelineFile = ".drone.yml"
|
||||||
}
|
}
|
||||||
returnVal = &execCommand{
|
return &execCommand{
|
||||||
Flags: &Flags{
|
Flags: &Flags{
|
||||||
Build: &drone.Build{
|
Build: &drone.Build{
|
||||||
Event: input.String("event"),
|
Event: input.String("event"),
|
||||||
@ -88,9 +88,8 @@ func mapOldToExecCommand(input *cli.Context) (returnVal *execCommand) {
|
|||||||
Secrets: readParams(input.String("secrets")),
|
Secrets: readParams(input.String("secrets")),
|
||||||
Config: input.String("registry"),
|
Config: input.String("registry"),
|
||||||
Privileged: input.StringSlice("privileged"),
|
Privileged: input.StringSlice("privileged"),
|
||||||
|
Pretty: input.BoolT("pretty"),
|
||||||
}
|
}
|
||||||
|
|
||||||
return returnVal
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithVolumeSlice is a transform function that adds a set of global volumes to the container that are defined in --volume=host:container format.
|
// WithVolumeSlice is a transform function that adds a set of global volumes to the container that are defined in --volume=host:container format.
|
||||||
|
Loading…
Reference in New Issue
Block a user