diff options
author | Elad <theman@elad.im> | 2018-10-12 20:51:38 +0800 |
---|---|---|
committer | Anton Evangelatov <anton.evangelatov@gmail.com> | 2018-10-12 20:51:38 +0800 |
commit | 4868964bb99facd8cc6149626023e64db14a6742 (patch) | |
tree | 858bfaddcb1f1381e3bb2e0dd4c72aed397e621d /cmd/swarm/list.go | |
parent | 6f607de5d590ff2fbe8798b04e5924be3b7ca0b4 (diff) | |
download | go-tangerine-4868964bb99facd8cc6149626023e64db14a6742.tar go-tangerine-4868964bb99facd8cc6149626023e64db14a6742.tar.gz go-tangerine-4868964bb99facd8cc6149626023e64db14a6742.tar.bz2 go-tangerine-4868964bb99facd8cc6149626023e64db14a6742.tar.lz go-tangerine-4868964bb99facd8cc6149626023e64db14a6742.tar.xz go-tangerine-4868964bb99facd8cc6149626023e64db14a6742.tar.zst go-tangerine-4868964bb99facd8cc6149626023e64db14a6742.zip |
cmd/swarm: split flags and cli command declarations to the relevant files (#17896)
Diffstat (limited to 'cmd/swarm/list.go')
-rw-r--r-- | cmd/swarm/list.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/swarm/list.go b/cmd/swarm/list.go index 01b3f4ab6..5d35154a5 100644 --- a/cmd/swarm/list.go +++ b/cmd/swarm/list.go @@ -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() |