Skip to content

Commit

Permalink
Rename project and crate to stdrename
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadiguibou committed Jul 10, 2020
1 parent 2a7c2cf commit 8157edd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "standardize_filenames"
name = "stdrename"
version = "0.1.0"
authors = ["Gabriel Lacroix <[email protected]>"]
edition = "2018"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# standardize_filenames
# stdrename

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

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

```bash
git clone https://github.com/Gadiguibou/standardize_filenames.git
git clone https://github.com/Gadiguibou/stdrename.git
```

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

```bash
chmod +x standardize_filenames
chmod +x stdrename
```

Then, just type the path to the file:

```bash
./standardize_filenames
./stdrename
```

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

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

```bash
./standardize_filenames snake_case
./stdrename snake_case
```

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

```bash
./standardize_filenames camelCase ~/Pictures
./stdrename camelCase ~/Pictures
```
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::env;
use std::process;

use standardize_filenames::Config;
use stdrename::Config;

fn main() {
let args: Vec<String> = env::args().collect();
Expand All @@ -11,7 +11,7 @@ fn main() {
process::exit(1);
});

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

process::exit(1);
Expand Down

0 comments on commit 8157edd

Please sign in to comment.