6 个版本
0.3.2 | 2021年10月27日 |
---|---|
0.3.1 | 2021年10月18日 |
0.2.0 | 2021年10月3日 |
0.1.2 | 2021年9月20日 |
#4 in #terminals
每月下载 27 次
25KB
628 代码行(不含注释)
[email protected]
这是一个用Rust编写的简单终端多路复用器,它使用一个配置yaml文件运行。
sila - 读取巴利语中的[shila],代表道德;
安装
为了安装sila,您需要在系统中安装cargo
和rust
。
cargo install sila
配置
创建一个yaml文件,列出您想要多路复用命令的项目。
# config.yaml
- name: PJ1
path: /path/to/your/project1
- name: PJ2
path: /path/to/your/project2
- name: PJ3
path: /path/to/your/project3
如何使用
> sila config.yaml
> git describe
[PJ1]> git describe
...
[PJ2]> git describe
...
[PJ3]> git describe
...
功能
命令管道
> cat Cargo.toml | grep version
[PJ1]> cat Cargo.toml | grep version
version = "0.1.0"
[PJ2]> cat Cargo.toml | grep version
version = "0.2.0"
serde = { version = "1.0", features = ["derive"] }
[PJ3]> cat Cargo.toml | grep version
version = "0.1.0"
固定终端
- 固定/取消固定终端,并在几个终端中运行简单的命令
> pin PJ1 PJ3
> ... run {command}
[PJ1]> {command}
[PJ3]> {command}
> unpin PJ1
>... run {command}
[PJ3]> {command}
...
辅助命令
> help
sila@0.3.1
A command line multiplexer.
created by Alexandru Olaru <alxolr@gmail.com>
COMMANDS:
pin <term1> <term2> Pin one or multiple terminals separated by space. Following commands will run on top of pinned ones only.
unpin [term1] Unpin all terminals if no argument is provided or the specific ones.
ban <term1> <term2> Ban one or multiple terminals separated by space. The following commands will not run in banned terminals
unban [term2] Unban the specificed terminals or all if no arguments provided.
list List the active terminal names.
help Displays help information.
exit Close the application.
依赖
~5MB
~89K SLoC