@cryptotaxi247 / kubo / commits / be4c4abcc

chore(commands): Mark feature as experimental

License: MIT Signed-off-by: hannahhoward <hannah@hannahhoward.net>

hannahhoward committed Nov 14, 2018 at 13:26 UTC be4c4abcc2da604b774096f2ee22068f23d79de1
1 file changed +4 -2
core/commands/ls.go
+4 -2
@@ -37,7 +37,9 @@ type LsObject struct {
37 // LsOutput is a set of printable data for directories,
38 // it can be complete or partial
39 type LsOutput struct {
40 - Objects []LsObject
40 + Objects []LsObject
41 + // temporary flag to help us figure out where we are in the process of ls-ing
42 + // the directory when we are streaming
43 LastObjectHash string
44 }
45
@@ -66,7 +68,7 @@ The JSON output contains type information.
68 Options: []cmdkit.Option{
69 cmdkit.BoolOption(lsHeadersOptionNameTime, "v", "Print table headers (Hash, Size, Name)."),
70 cmdkit.BoolOption(lsResolveTypeOptionName, "Resolve linked objects to find out their types.").WithDefault(true),
69 - cmdkit.BoolOption(lsStreamOptionName, "s", "Stream directory entries as they are found."),
71 + cmdkit.BoolOption(lsStreamOptionName, "s", "Enable exprimental streaming of directory entries as they are traversed."),
72 },
73 Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
74 nd, err := cmdenv.GetNode(env)