Merge pull request #9809 from dereknola/urfave_v2
Migrate Urfave CLI from v1 to v2
This commit is contained in:
@@ -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')",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user