cmd/swarm: split flags and cli command declarations to the relevant files (#17896)

This commit is contained in:
Elad
2018-10-12 14:51:38 +02:00
committed by Anton Evangelatov
parent 6f607de5d5
commit 4868964bb9
11 changed files with 468 additions and 422 deletions

View File

@ -27,6 +27,15 @@ import (
"gopkg.in/urfave/cli.v1"
)
var listCommand = cli.Command{
Action: list,
CustomHelpTemplate: helpTemplate,
Name: "ls",
Usage: "list files and directories contained in a manifest",
ArgsUsage: "<manifest> [<prefix>]",
Description: "Lists files and directories contained in a manifest",
}
func list(ctx *cli.Context) {
args := ctx.Args()