lazycli:轻松将静态CLI命令转换为TUI

时间:2021-02-27 07:14:29
【文件属性】:
文件名称:lazycli:轻松将静态CLI命令转换为TUI
文件大小:24KB
文件格式:ZIP
更新时间:2021-02-27 07:14:29
Rust 懒人 轻松将静态CLI命令转换为TUI 通过克隆仓库和运行cargo run -- -- docker ps或cargo run -- -- git branch测试这一点。 或使用cargo install --path .进行cargo install --path . 然后作为lazycli调用。 现在,为ls , docker ps , git branch , git status --short等常见命令定义了一些默认的键盘绑定。但是您可以为任何喜欢的命令自定义它! 只需使用$从程序中打开配置文件,然后开始播放即可。 lazycli最适合用于吐出项目列表或表格的任何命令行程序。 在您的命令中,只需在第一列中引用列号$ 0,在第二列中引用$ 1,依此类推,其余的将由lazycli进行。
【文件预览】:
lazycli-master
----.gitignore(18B)
----src()
--------main.rs(506B)
--------terminal_manager.rs(1KB)
--------ui()
--------os_commands.rs(270B)
--------app.rs(3KB)
--------event_loop.rs(10KB)
--------config()
--------command.rs(685B)
--------args.rs(2KB)
--------stateful_table.rs(774B)
--------parse()
--------template.rs(1KB)
----Cargo.lock(16KB)
----LICENSE(1KB)
----Cargo.toml(526B)
----.github()
--------workflows()
----README.md(794B)
----rustfmt.toml(36B)

网友评论