https://github.com/theawiteb/rsre
Rsre it's tool to rename file/directory
https://github.com/theawiteb/rsre
cli renamer rust
Last synced: over 1 year ago
JSON representation
Rsre it's tool to rename file/directory
- Host: GitHub
- URL: https://github.com/theawiteb/rsre
- Owner: TheAwiteb
- License: apache-2.0
- Created: 2022-10-22T21:45:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T03:12:50.000Z (over 3 years ago)
- Last Synced: 2024-05-02T02:57:14.280Z (about 2 years ago)
- Topics: cli, renamer, rust
- Language: Rust
- Homepage: https://crates.io/crates/rsre
- Size: 52.7 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
Awesome Lists containing this project
README
## Requirements
* [Rust](https://www.rust-lang.org/) Nightly
## Install
### With Cargo
```bash
# Install nightly rust
rustup toolchain install nightly
# Install Rsre with nightly rust
cargo +nightly install rsre
rsre --version
```
### From source
```bash
# Install nightly rust
rustup toolchain install nightly
# Clone the repo
git clone https://github.com/theawiteb/rsre.git
# Change directory to it
cd rsre
# Build it with cargo
cargo +nightly build --release
# Move the binary to `/usr/bin` (Unix like system) (need permission to move in `/usr/bin`)
# You can change binary directory to `~/.cargo/bin` if its exists and it's in `$PATH`
sudo mv ./target/release/rsre /usr/bin/rsre
# Print the version
rsre --version
```
## Why
because i don't want to write full path of the new name 😶
## Using
```
USAGE:
rsre FILE/DIRECTORY NEW_FULL_NAME
OPTIONS:
-h, --help Print help information
-V, --version Print version information
```
## Example
### Long path
```
# with mv
mv ../../foo/bar/bat/foo.txt ../../foo/bar/bat/bar.txt
# with rsre
rsre ../../foo/bar/bat/foo.txt bar.txt
```
### Single file
```
rsre bar.rs foo.rs
```
## License
Licensed under either of Apache License, Version
2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.