ctr: move events command

Signed-off-by: Jess Valarezo <valarezo.jessica@gmail.com>
This commit is contained in:
Jess Valarezo 2017-10-25 22:21:57 -04:00
parent fdb6859921
commit 8540587b37
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
package main package events
import ( import (
"encoding/json" "encoding/json"
@ -10,7 +10,8 @@ import (
"github.com/urfave/cli" "github.com/urfave/cli"
) )
var eventsCommand = cli.Command{ // Command is the cli command for displaying containerd events
var Command = cli.Command{
Name: "events", Name: "events",
Usage: "display containerd events", Usage: "display containerd events",
Action: func(context *cli.Context) error { Action: func(context *cli.Context) error {

View File

@ -8,6 +8,7 @@ import (
"github.com/containerd/containerd/cmd/ctr/commands/containers" "github.com/containerd/containerd/cmd/ctr/commands/containers"
"github.com/containerd/containerd/cmd/ctr/commands/content" "github.com/containerd/containerd/cmd/ctr/commands/content"
"github.com/containerd/containerd/cmd/ctr/commands/events"
"github.com/containerd/containerd/cmd/ctr/commands/images" "github.com/containerd/containerd/cmd/ctr/commands/images"
namespacesCmd "github.com/containerd/containerd/cmd/ctr/commands/namespaces" namespacesCmd "github.com/containerd/containerd/cmd/ctr/commands/namespaces"
"github.com/containerd/containerd/cmd/ctr/commands/plugins" "github.com/containerd/containerd/cmd/ctr/commands/plugins"
@ -76,7 +77,7 @@ containerd CLI
applyCommand, applyCommand,
containers.Command, containers.Command,
content.Command, content.Command,
eventsCommand, events.Command,
fetchCommand, fetchCommand,
fetchObjectCommand, fetchObjectCommand,
images.Command, images.Command,