Crates.io | fuga |
lib.rs | fuga |
version | 0.1.2 |
source | src |
created_at | 2023-12-26 08:42:15.07768 |
updated_at | 2024-06-26 12:57:29.488173 |
description | A CLI tool to operate files or directories in 2 steps. |
homepage | |
repository | https://github.com/liebe-magi/fuga |
max_upload_size | |
id | 1080776 |
size | 1,710,565 |
A CLI tool to operate files or directories in 2 steps.
ๆฅๆฌ่ชใฎREADMEใฏใใกใ
fuga
is a CLI tool that performs file operations in two steps.mv
, cp
, and ln
.fuga mark
, and then perform copy or move operations after navigating to another directory.Pre-built binaries for the following architectures are available on releases.
Place the binary for your architecture in a directory included in your system's PATH.
fuga
by building it using the cargo
command.cargo install fuga
$ fuga -V
fuga v0.1.1
A CLI tool to operate files or directories in 2 steps.
Usage: fuga <COMMAND>
Commands:
mark Set the path of the target file or directory
copy Copy the marked file or directory
move Move the marked file or directory
link Make a symbolic link to the marked file or directory
completion Generate the completion script
version Show the version of the tool
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
fuga mark <TARGET>
.$ fuga mark target_file.txt
โ
: ๐ target_file.txt has marked.
fuga mark --show
.$ fuga mark --show
โน๏ธ : ๐ /home/user/path/to/file/target_file.txt
fuga mark --reset
.$ fuga mark --reset
โ
: The marked path has reset.
Three file operations are possible: Copy
, Move
, and Symbolic Link creation
.
fuga copy
to copy the marked file or directory.$ cd test_dir_copy
$ fuga copy
โน๏ธ : Start copying ๐ target_file.txt from /home/user/path/to/file/target_file.txt
โ
: ๐ target_file.txt has copied.
$ fuga 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.
$ fuga copy copy.txt
โน๏ธ : Start copying ๐ copy.txt from /home/user/path/to/file/target_file.txt
โ
: ๐ copy.txt has copied.
fuga move
to move the marked file or directory.$ cd test_dir_move
$ fuga move
โน๏ธ : Start moving ๐ target_file.txt from /home/user/path/to/file/target_file.txt
โ
: ๐ target_file.txt has moved.
$ fuga 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.
$ fuga move move.txt
โน๏ธ : Start moving ๐ move.txt from /home/user/path/to/file/target_file.txt
โ
: ๐ move.txt has moved.
fuga link
to create a symbolic link to the marked file or directory.$ cd test_dir_link
$ fuga link
โน๏ธ : Start making symbolic link ๐ target_file.txt from /home/user/path/to/file/target_file.txt
โ
: ๐ target_file.txt has made.
$ fuga 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.
$ fuga link link.txt
โน๏ธ : Start making symbolic link ๐ link.txt from /home/user/path/to/file/target_file.txt
โ
: ๐ link.txt has made.
fuga completion <shell>
to output a script for command completion. It supports the following five shells:
# For fish
$ fuga completion fish > ~/.config/fish/completions/fuga.fish