File tree Expand file tree Collapse file tree 3 files changed +423
-0
lines changed Expand file tree Collapse file tree 3 files changed +423
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,43 @@ The output of this command is supposed to be machine-readable.
154
154
Prints the swarm hash of file or directory.
155
155
` ,
156
156
},
157
+ {
158
+ Name : "manifest" ,
159
+ Usage : "update a MANIFEST" ,
160
+ ArgsUsage : "manifest COMMAND" ,
161
+ Description : `
162
+ Updates a MANIFEST by adding/removing/updating the hash of a path.
163
+ ` ,
164
+ Subcommands : []cli.Command {
165
+ {
166
+ Action : add ,
167
+ Name : "add" ,
168
+ Usage : "add a new path to the manifest" ,
169
+ ArgsUsage : "<MANIFEST> <path> <hash> [<content-type>]" ,
170
+ Description : `
171
+ Adds a new path to the manifest
172
+ ` ,
173
+ },
174
+ {
175
+ Action : update ,
176
+ Name : "update" ,
177
+ Usage : "update the hash for an already existing path in the manifest" ,
178
+ ArgsUsage : "<MANIFEST> <path> <newhash> [<newcontent-type>]" ,
179
+ Description : `
180
+ Update the hash for an already existing path in the manifest
181
+ ` ,
182
+ },
183
+ {
184
+ Action : remove ,
185
+ Name : "remove" ,
186
+ Usage : "removes a path from the manifest" ,
187
+ ArgsUsage : "<MANIFEST> <path>" ,
188
+ Description : `
189
+ Removes a path from the manifest
190
+ ` ,
191
+ },
192
+ },
193
+ },
157
194
}
158
195
159
196
app .Flags = []cli.Flag {
You can’t perform that action at this time.
0 commit comments