Bump urfave/cli to v3.2.0 (#49)

Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/49
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
Robert Kaussow
2025-04-24 06:44:11 +00:00
committed by Patrick Schratz
parent 044f72ed49
commit e3f4284781
7 changed files with 24 additions and 24 deletions
+5 -5
View File
@@ -37,14 +37,14 @@ func stepFlags() []cli.Flag {
"DRONE_STEP_NUMBER",
),
},
&cli.IntFlag{
&cli.Int64Flag{
Name: "step.started",
Usage: "step start time",
Sources: cli.EnvVars(
"CI_STEP_STARTED",
),
},
&cli.IntFlag{
&cli.Int64Flag{
Name: "step.finished",
Usage: "step finish time",
Sources: cli.EnvVars(
@@ -56,8 +56,8 @@ func stepFlags() []cli.Flag {
func stepFromContext(c *cli.Command) Step {
return Step{
Number: int(c.Int("step.number")),
Started: time.Unix(c.Int("step.started"), 0),
Finished: time.Unix(c.Int("step.finished"), 0),
Number: c.Int("step.number"),
Started: time.Unix(c.Int64("step.started"), 0),
Finished: time.Unix(c.Int64("step.finished"), 0),
}
}