Skip to content

Commit 8157edd

Browse files
committed
Rename project and crate to stdrename
1 parent 2a7c2cf commit 8157edd

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "standardize_filenames"
2+
name = "stdrename"
33
version = "0.1.0"
44
authors = ["Gabriel Lacroix <[email protected]>"]
55
edition = "2018"

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# standardize_filenames
1+
# stdrename
22

33
This small utility is designed to rename all files in a folder according to a specified naming convention (camelCase, snake_case, kebab-case, etc.).
44

@@ -24,7 +24,7 @@ Download the released file supported by your OS (shared library for Linux and .e
2424
Build it yourself using [cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) with:
2525

2626
```bash
27-
git clone https://github.com/Gadiguibou/standardize_filenames.git
27+
git clone https://github.com/Gadiguibou/stdrename.git
2828
```
2929

3030
and
@@ -38,25 +38,25 @@ cargo build --release
3838
On Linux you may need to make the shared library file executable with:
3939

4040
```bash
41-
chmod +x standardize_filenames
41+
chmod +x stdrename
4242
```
4343

4444
Then, just type the path to the file:
4545

4646
```bash
47-
./standardize_filenames
47+
./stdrename
4848
```
4949

5050
By default, the program will rename all files in the current directory with the default convention (kebab-case).
5151

5252
You can specify a different naming convention with the first argument you pass to the program e.g.:
5353

5454
```bash
55-
./standardize_filenames snake_case
55+
./stdrename snake_case
5656
```
5757

5858
You can also specify another folder to parse with a second argument e.g.:
5959

6060
```bash
61-
./standardize_filenames camelCase ~/Pictures
61+
./stdrename camelCase ~/Pictures
6262
```

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::env;
22
use std::process;
33

4-
use standardize_filenames::Config;
4+
use stdrename::Config;
55

66
fn main() {
77
let args: Vec<String> = env::args().collect();
@@ -11,7 +11,7 @@ fn main() {
1111
process::exit(1);
1212
});
1313

14-
if let Err(e) = standardize_filenames::run(config) {
14+
if let Err(e) = stdrename::run(config) {
1515
eprintln!("Application error: {}", e);
1616

1717
process::exit(1);

0 commit comments

Comments
 (0)