@@ -30,7 +30,7 @@ Files is an API for manipulating ipfs objects as if they were a unix filesystem.
30
30
` ,
31
31
},
32
32
Options : []cmds.Option {
33
- cmds .BoolOption ("f" , "flush" , "flush target and ancestors after write (default: true)" ),
33
+ cmds .BoolOption ("f" , "flush" , "Flush target and ancestors after write (default: true). " ),
34
34
},
35
35
Subcommands : map [string ]* cmds.Command {
36
36
"read" : FilesReadCmd ,
@@ -50,7 +50,7 @@ var FilesStatCmd = &cmds.Command{
50
50
},
51
51
52
52
Arguments : []cmds.Argument {
53
- cmds .StringArg ("path" , true , false , "path to node to stat" ),
53
+ cmds .StringArg ("path" , true , false , "Path to node to stat. " ),
54
54
},
55
55
Run : func (req cmds.Request , res cmds.Response ) {
56
56
node , err := req .InvocContext ().GetNode ()
@@ -140,8 +140,8 @@ var FilesCpCmd = &cmds.Command{
140
140
Tagline : "Copy files into mfs." ,
141
141
},
142
142
Arguments : []cmds.Argument {
143
- cmds .StringArg ("source" , true , false , "source object to copy" ),
144
- cmds .StringArg ("dest" , true , false , "destination to copy object to" ),
143
+ cmds .StringArg ("source" , true , false , "Source object to copy. " ),
144
+ cmds .StringArg ("dest" , true , false , "Destination to copy object to. " ),
145
145
},
146
146
Run : func (req cmds.Request , res cmds.Response ) {
147
147
node , err := req .InvocContext ().GetNode ()
@@ -228,10 +228,10 @@ Examples:
228
228
` ,
229
229
},
230
230
Arguments : []cmds.Argument {
231
- cmds .StringArg ("path" , true , false , "path to show listing for" ),
231
+ cmds .StringArg ("path" , true , false , "Path to show listing for. " ),
232
232
},
233
233
Options : []cmds.Option {
234
- cmds .BoolOption ("l" , "use long listing format" ),
234
+ cmds .BoolOption ("l" , "Use long listing format. " ),
235
235
},
236
236
Run : func (req cmds.Request , res cmds.Response ) {
237
237
path , err := checkPath (req .Arguments ()[0 ])
@@ -323,11 +323,11 @@ Examples:
323
323
},
324
324
325
325
Arguments : []cmds.Argument {
326
- cmds .StringArg ("path" , true , false , "path to file to be read" ),
326
+ cmds .StringArg ("path" , true , false , "Path to file to be read. " ),
327
327
},
328
328
Options : []cmds.Option {
329
- cmds .IntOption ("o" , "offset" , "offset to read from" ),
330
- cmds .IntOption ("n" , "count" , "maximum number of bytes to read" ),
329
+ cmds .IntOption ("o" , "offset" , "Offset to read from. " ),
330
+ cmds .IntOption ("n" , "count" , "Maximum number of bytes to read. " ),
331
331
},
332
332
Run : func (req cmds.Request , res cmds.Response ) {
333
333
n , err := req .InvocContext ().GetNode ()
@@ -412,8 +412,8 @@ Example:
412
412
},
413
413
414
414
Arguments : []cmds.Argument {
415
- cmds .StringArg ("source" , true , false , "source file to move" ),
416
- cmds .StringArg ("dest" , true , false , "target path for file to be moved to" ),
415
+ cmds .StringArg ("source" , true , false , "Source file to move. " ),
416
+ cmds .StringArg ("dest" , true , false , "Target path for file to be moved to. " ),
417
417
},
418
418
Run : func (req cmds.Request , res cmds.Response ) {
419
419
n , err := req .InvocContext ().GetNode ()
@@ -468,14 +468,14 @@ Warning:
468
468
` ,
469
469
},
470
470
Arguments : []cmds.Argument {
471
- cmds .StringArg ("path" , true , false , "path to write to" ),
472
- cmds .FileArg ("data" , true , false , "data to write" ).EnableStdin (),
471
+ cmds .StringArg ("path" , true , false , "Path to write to. " ),
472
+ cmds .FileArg ("data" , true , false , "Data to write. " ).EnableStdin (),
473
473
},
474
474
Options : []cmds.Option {
475
- cmds .IntOption ("o" , "offset" , "offset to write to" ),
476
- cmds .BoolOption ("e" , "create" , "create the file if it does not exist" ),
477
- cmds .BoolOption ("t" , "truncate" , "truncate the file before writing" ),
478
- cmds .IntOption ("n" , "count" , "maximum number of bytes to read" ),
475
+ cmds .IntOption ("o" , "offset" , "Offset to write to. " ),
476
+ cmds .BoolOption ("e" , "create" , "Create the file if it does not exist. " ),
477
+ cmds .BoolOption ("t" , "truncate" , "Truncate the file before writing. " ),
478
+ cmds .IntOption ("n" , "count" , "Maximum number of bytes to read. " ),
479
479
},
480
480
Run : func (req cmds.Request , res cmds.Response ) {
481
481
path , err := checkPath (req .Arguments ()[0 ])
@@ -580,10 +580,10 @@ Examples:
580
580
},
581
581
582
582
Arguments : []cmds.Argument {
583
- cmds .StringArg ("path" , true , false , "path to dir to make" ),
583
+ cmds .StringArg ("path" , true , false , "Path to dir to make. " ),
584
584
},
585
585
Options : []cmds.Option {
586
- cmds .BoolOption ("p" , "parents" , "no error if existing, make parent directories as needed" ),
586
+ cmds .BoolOption ("p" , "parents" , "No error if existing, make parent directories as needed. " ),
587
587
},
588
588
Run : func (req cmds.Request , res cmds.Response ) {
589
589
n , err := req .InvocContext ().GetNode ()
@@ -629,10 +629,10 @@ remove files or directories
629
629
},
630
630
631
631
Arguments : []cmds.Argument {
632
- cmds .StringArg ("path" , true , true , "file to remove" ),
632
+ cmds .StringArg ("path" , true , true , "File to remove. " ),
633
633
},
634
634
Options : []cmds.Option {
635
- cmds .BoolOption ("r" , "recursive" , "recursively remove directories" ),
635
+ cmds .BoolOption ("r" , "recursive" , "Recursively remove directories. " ),
636
636
},
637
637
Run : func (req cmds.Request , res cmds.Response ) {
638
638
nd , err := req .InvocContext ().GetNode ()
0 commit comments