feat: put/hash 支持 --pipe/-p 从 stdin 读取内容 #83
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
put和hash命令目前只接受文件路径作为输入,不支持从 stdin 读取。增加--pipe/-pflag 让它们能从管道读内容。Why
当前如果想 put 一段 inline JSON,必须先写到临时文件再传路径,不方便。支持 stdin 后可以:
与
render -p保持一致的 flag 命名。Scope
put加--pipe/-pflag,从 stdin 读 JSON 并存入 CAShash加--pipe/-pflag,从 stdin 读 JSON 并计算 hash(不存储)-p时第二个 positional arg(文件路径)不再 required