提交 be4c4abc 作者: hannahhoward

chore(commands): Mark feature as experimental

License: MIT
Signed-off-by: 's avatarhannahhoward <hannah@hannahhoward.net>
上级 7391cfd4
...@@ -37,7 +37,9 @@ type LsObject struct { ...@@ -37,7 +37,9 @@ type LsObject struct {
// LsOutput is a set of printable data for directories, // LsOutput is a set of printable data for directories,
// it can be complete or partial // it can be complete or partial
type LsOutput struct { 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 LastObjectHash string
} }
...@@ -66,7 +68,7 @@ The JSON output contains type information. ...@@ -66,7 +68,7 @@ The JSON output contains type information.
Options: []cmdkit.Option{ Options: []cmdkit.Option{
cmdkit.BoolOption(lsHeadersOptionNameTime, "v", "Print table headers (Hash, Size, Name)."), 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(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 { Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
nd, err := cmdenv.GetNode(env) nd, err := cmdenv.GetNode(env)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论