CLI: Upgrade github.com/urfave/cli from v1 to v2 #3168

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-12-05 17:15:59 +01:00
parent 3b61aba85d
commit 9eef183323
103 changed files with 1961 additions and 1642 deletions

View File

@@ -12,11 +12,12 @@ func TestUsersRemoveCommand(t *testing.T) {
var err error
// Create test context with flags and arguments.
ctx := NewTestContext([]string{"rm", "uqxqg7i1kperxxx0"})
args := []string{"rm", "uqxqg7i1kperxxx0"}
ctx := NewTestContext(args)
// Run command with test context.
output := capture.Output(func() {
err = UsersRemoveCommand.Run(ctx)
err = UsersRemoveCommand.Run(ctx, args...)
})
// Check command output for plausibility.
@@ -28,11 +29,12 @@ func TestUsersRemoveCommand(t *testing.T) {
var err error
// Create test context with flags and arguments.
ctx := NewTestContext([]string{"rm", "deleted"})
args := []string{"rm", "deleted"}
ctx := NewTestContext(args)
// Run command with test context.
output := capture.Output(func() {
err = UsersRemoveCommand.Run(ctx)
err = UsersRemoveCommand.Run(ctx, args...)
})
// Check command output for plausibility.