mirror of
https://codeberg.org/woodpecker-plugins/go-plugin
synced 2026-06-04 18:23:54 +08:00
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:
committed by
Patrick Schratz
parent
044f72ed49
commit
e3f4284781
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user