From 8bb5999738f912a72819a7394aa7ac996ffa3995 Mon Sep 17 00:00:00 2001 From: Kazuyoshi Kato Date: Mon, 14 Nov 2022 17:45:44 +0000 Subject: [PATCH] Remove the outdated comment While containerd/cgroups is only for Linux, the metrics subcommand works on Windows. Signed-off-by: Kazuyoshi Kato --- cmd/ctr/commands/tasks/metrics.go | 6 ------ cmd/ctr/commands/tasks/tasks.go | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/ctr/commands/tasks/metrics.go b/cmd/ctr/commands/tasks/metrics.go index 3fd9c4639..b99c31629 100644 --- a/cmd/ctr/commands/tasks/metrics.go +++ b/cmd/ctr/commands/tasks/metrics.go @@ -32,12 +32,6 @@ import ( "github.com/urfave/cli" ) -func init() { - // metricsCommand is only added on Linux as github.com/containerd/cgroups/v3 - // does not compile on darwin or windows - Command.Subcommands = append(Command.Subcommands, metricsCommand) -} - const ( formatFlag = "format" formatTable = "table" diff --git a/cmd/ctr/commands/tasks/tasks.go b/cmd/ctr/commands/tasks/tasks.go index e682b11b8..d9f0d9e52 100644 --- a/cmd/ctr/commands/tasks/tasks.go +++ b/cmd/ctr/commands/tasks/tasks.go @@ -38,6 +38,7 @@ var Command = cli.Command{ execCommand, listCommand, killCommand, + metricsCommand, pauseCommand, psCommand, resumeCommand,