| Crates.io | fugue-box |
| lib.rs | fugue-box |
| version | 0.0.4 |
| created_at | 2022-05-09 13:10:45.336408+00 |
| updated_at | 2023-08-07 06:38:45.858529+00 |
| description | A CLI tool to operate files or directories in 2 steps. |
| homepage | |
| repository | https://github.com/liebe-magi/fugue |
| max_upload_size | |
| id | 583190 |
| size | 49,694 |
A CLI tool to operate files or directories in 2 steps.
fugueはファイル操作を2ステップで行うCLIツールです。mv,cp,lnコマンドなどの代替コマンドとして開発しました。fugue markによりマーキングし、別のディレクトリに移動した後にコピーや移動を実行できます。以下のアーキテクチャ用のバイナリをreleasesに準備しています。
お使いのPCにあったバイナリをパスの通ったディレクトリに配置してください。
cargoコマンドによりビルドすることでインストールできます。$ cargo install fugue-box
$ fugue -V
fugue v0.0.4
USAGE:
fugue <SUBCOMMAND>
OPTIONS:
-h, --help Print help information
-V, --version Print version information
SUBCOMMANDS:
copy Copy the marked file or directory
help Print this message or the help of the given subcommand(s)
link Make a symbolic link to the marked file or directory
mark Set the path of the target file or directory
move Move the marked file or directory
version Show the version of the tool
fugue mark <TARGET>で操作対象とするファイルやディレクトリをマーキングします。$ fugue mark target_file.txt
✅ : 📄 target_file.txt has marked.
fugue mark --showで確認できます。$ fugue mark --show
ℹ️ : 📄 /home/user/path/to/file/target_file.txt
fugue mark --resetで解除できます。$ fugue mark --reset
✅ : The marked path has reset.
以下の3つのファイル操作が可能です。
fugue copyでマーキング中のファイルやディレクトリをコピーできます。$ cd test_dir_copy
$ fugue copy
ℹ️ : Start copying 📄 target_file.txt from /home/user/path/to/file/target_file.txt
✅ : 📄 target_file.txt has copied.
$ fugue copy test_dir_copy
ℹ️ : Start copying 📄 test_dir_copy/target_file.txt from /home/user/path/to/file/target_file.txt
✅ : 📄 test_dir_copy/target_file.txt has copied.
$ fugue copy copy.txt
ℹ️ : Start copying 📄 copy.txt from /home/user/path/to/file/target_file.txt
✅ : 📄 copy.txt has copied.
fugue moveでマーキング中のファイルやディレクトリを移動できます。$ cd test_dir_move
$ fugue move
ℹ️ : Start moving 📄 target_file.txt from /home/user/path/to/file/target_file.txt
✅ : 📄 target_file.txt has moved.
$ fugue move test_dir_move
ℹ️ : Start copying 📄 test_dir_move/target_file.txt from /home/user/path/to/file/target_file.txt
✅ : 📄 test_dir_move/target_file.txt has moved.
$ fugue move move.txt
ℹ️ : Start moving 📄 move.txt from /home/user/path/to/file/target_file.txt
✅ : 📄 move.txt has moved.
fugue linkでマーキング中のファイルやディレクトリへのシンボリックリンクを作成できます。$ cd test_dir_link
$ fugue link
ℹ️ : Start making symbolic link 📄 target_file.txt from /home/user/path/to/file/target_file.txt
✅ : 📄 target_file.txt has made.
$ fugue link test_dir_link
ℹ️ : Start making symbolic link 📄 test_dir_link/target_file.txt from /home/user/path/to/file/target_file.txt
✅ : 📄 test_dir_link/target_file.txt has made.
$ fugue link link.txt
ℹ️ : Start making symbolic link 📄 link.txt from /home/user/path/to/file/target_file.txt
✅ : 📄 link.txt has made.