cmd: don't alias context package, and use cliContext for cli.Context

Unfortunately, this is a rather large diff, but perhaps worth a one-time
"rip off the bandaid" for v2. This patch removes the use of "gocontext"
as alias for stdLib's "context", and uses "cliContext" for uses of
cli.context.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-06-20 02:15:13 +02:00
parent 741c4bde51
commit dd0542f7c1
65 changed files with 754 additions and 755 deletions

View File

@@ -17,13 +17,13 @@
package tasks
import (
gocontext "context"
"context"
"github.com/urfave/cli/v2"
)
type resizer interface {
Resize(ctx gocontext.Context, w, h uint32) error
Resize(ctx context.Context, w, h uint32) error
}
// Command is the cli command for managing tasks