From be4c4abcc2da604b774096f2ee22068f23d79de1 Mon Sep 17 00:00:00 2001 From: hannahhoward Date: Wed, 14 Nov 2018 13:26:43 -0800 Subject: [PATCH] chore(commands): Mark feature as experimental License: MIT Signed-off-by: hannahhoward --- core/commands/ls.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/commands/ls.go b/core/commands/ls.go index ce53d49ed..e5329af03 100644 --- a/core/commands/ls.go +++ b/core/commands/ls.go @@ -37,7 +37,9 @@ type LsObject struct { // LsOutput is a set of printable data for directories, // it can be complete or partial type LsOutput struct { - Objects []LsObject + Objects []LsObject + // temporary flag to help us figure out where we are in the process of ls-ing + // the directory when we are streaming LastObjectHash string } @@ -66,7 +68,7 @@ The JSON output contains type information. Options: []cmdkit.Option{ cmdkit.BoolOption(lsHeadersOptionNameTime, "v", "Print table headers (Hash, Size, Name)."), cmdkit.BoolOption(lsResolveTypeOptionName, "Resolve linked objects to find out their types.").WithDefault(true), - cmdkit.BoolOption(lsStreamOptionName, "s", "Stream directory entries as they are found."), + cmdkit.BoolOption(lsStreamOptionName, "s", "Enable exprimental streaming of directory entries as they are traversed."), }, Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error { nd, err := cmdenv.GetNode(env)