Skip to content

Commit 6d1e292

Browse files
janosgbalint
authored andcommitted
Manifest cli fix and upload defaultpath only once (#17375)
* cmd/swarm: fix manifest subcommands and add tests * cmd/swarm: manifest update: update default entry for non-encrypted uploads * swarm/api: upload defaultpath file only once * swarm/api/client: improve UploadDirectory default path handling * cmd/swarm: support absolute and relative default path values * cmd/swarm: fix a typo in test * cmd/swarm: check encrypted uploads in manifest update tests
1 parent 3ec5dda commit 6d1e292

10 files changed

Lines changed: 840 additions & 151 deletions

File tree

‎cmd/swarm/main.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,23 +322,23 @@ Downloads a swarm bzz uri to the given dir. When no dir is provided, working dir
322322
Description: "Updates a MANIFEST by adding/removing/updating the hash of a path.\nCOMMAND could be: add, update, remove",
323323
Subcommands: []cli.Command{
324324
{
325-
Action: add,
325+
Action: manifestAdd,
326326
CustomHelpTemplate: helpTemplate,
327327
Name: "add",
328328
Usage: "add a new path to the manifest",
329-
ArgsUsage: "<MANIFEST> <path> <hash> [<content-type>]",
329+
ArgsUsage: "<MANIFEST> <path> <hash>",
330330
Description: "Adds a new path to the manifest",
331331
},
332332
{
333-
Action: update,
333+
Action: manifestUpdate,
334334
CustomHelpTemplate: helpTemplate,
335335
Name: "update",
336336
Usage: "update the hash for an already existing path in the manifest",
337-
ArgsUsage: "<MANIFEST> <path> <newhash> [<newcontent-type>]",
337+
ArgsUsage: "<MANIFEST> <path> <newhash>",
338338
Description: "Update the hash for an already existing path in the manifest",
339339
},
340340
{
341-
Action: remove,
341+
Action: manifestRemove,
342342
CustomHelpTemplate: helpTemplate,
343343
Name: "remove",
344344
Usage: "removes a path from the manifest",

0 commit comments

Comments
 (0)