Merge pull request #9809 from dereknola/urfave_v2

Migrate Urfave CLI from v1 to v2
This commit is contained in:
Phil Estes
2024-02-16 16:13:37 +00:00
committed by GitHub
149 changed files with 11041 additions and 4693 deletions

View File

@@ -22,7 +22,7 @@ import (
"text/tabwriter"
"time"
"github.com/urfave/cli"
"github.com/urfave/cli/v2"
api "github.com/containerd/containerd/v2/api/services/introspection/v1"
"github.com/containerd/containerd/v2/cmd/ctr/commands"
@@ -31,17 +31,17 @@ import (
)
// Command is the parent for all commands under "deprecations"
var Command = cli.Command{
var Command = &cli.Command{
Name: "deprecations",
Subcommands: []cli.Command{
Subcommands: []*cli.Command{
listCommand,
},
}
var listCommand = cli.Command{
var listCommand = &cli.Command{
Name: "list",
Usage: "Print warnings for deprecations",
Flags: []cli.Flag{
cli.StringFlag{
&cli.StringFlag{
Name: "format",
Usage: "output format to use (Examples: 'default', 'json')",
},