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.2
```
USAGE:
fugue
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 testdircopy
$ fugue copy
â„¹ï¸ : Start copying 📄 targetfile.txt from /home/user/path/to/file/targetfile.txt
✅ : 📄 target_file.txt has copied.
```
``` $ fugue copy testdircopy â„¹ï¸ : Start copying 📄 testdircopy/targetfile.txt from /home/user/path/to/file/targetfile.txt ✅ : 📄 testdircopy/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 testdirmove
$ fugue move
â„¹ï¸ : Start moving 📄 targetfile.txt from /home/user/path/to/file/targetfile.txt
✅ : 📄 target_file.txt has moved.
```
``` $ fugue move testdirmove â„¹ï¸ : Start copying 📄 testdirmove/targetfile.txt from /home/user/path/to/file/targetfile.txt ✅ : 📄 testdirmove/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 testdirlink
$ fugue link
â„¹ï¸ : Start making symbolic link 📄 targetfile.txt from /home/user/path/to/file/targetfile.txt
✅ : 📄 target_file.txt has made.
```
``` $ fugue link testdirlink â„¹ï¸ : Start making symbolic link 📄 testdirlink/targetfile.txt from /home/user/path/to/file/targetfile.txt ✅ : 📄 testdirlink/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. ```