aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm/download.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/swarm/download.go')
-rw-r--r--cmd/swarm/download.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/swarm/download.go b/cmd/swarm/download.go
index 91bc2c93a..fcbefa020 100644
--- a/cmd/swarm/download.go
+++ b/cmd/swarm/download.go
@@ -28,6 +28,15 @@ import (
"gopkg.in/urfave/cli.v1"
)
+var downloadCommand = cli.Command{
+ Action: download,
+ Name: "down",
+ Flags: []cli.Flag{SwarmRecursiveFlag, SwarmAccessPasswordFlag},
+ Usage: "downloads a swarm manifest or a file inside a manifest",
+ ArgsUsage: " <uri> [<dir>]",
+ Description: `Downloads a swarm bzz uri to the given dir. When no dir is provided, working directory is assumed. --recursive flag is expected when downloading a manifest with multiple entries.`,
+}
+
func download(ctx *cli.Context) {
log.Debug("downloading content using swarm down")
args := ctx.Args()