Pedro de Oliveira
3c083334a8
Join replace_extra_tags with replace_name to create replace_name_with_tags.
...
Removed every unwrap() functions now return a Result.
Used chatgpt to help me with the to_str() function.
2023-05-12 00:07:02 +01:00
Pedro de Oliveira
184ff2b8f7
Mention that currently only works in preview-mode.
...
Change the part about the tags.
Removed the --help output.
Prettify the --replacement part.
Mention --wildcard in the arguments in [ ] so its optional.
2023-05-11 20:21:21 +01:00
Pedro de Oliveira
5571e38898
Remove `` from clap comments.
...
Rewrite a bit the comment of the replacement input argument.
2023-05-11 20:03:25 +01:00
Pedro de Oliveira
5244352a4c
verbatim_doc_comment
2023-05-11 17:46:02 +01:00
Pedro de Oliveira
b40e010b59
Change the path argument to a PathBuf, and adjust the code accordingly.
2023-05-10 22:00:57 +01:00
Pedro de Oliveira
1d306c8c6c
Change match groups format from \1, \2, etc
...
To: {1}, {2}, etc
2023-05-10 20:15:47 +01:00
Pedro de Oliveira
83464880a8
Remove pub from Args struct.
...
Add pub to `replace_extra_tags`.
2023-05-08 02:25:27 +01:00
Pedro de Oliveira
7518cef08d
Split code and tests into lib.rs and leave just the argument parsing in main.rs.
2023-05-08 02:20:57 +01:00
Pedro de Oliveira
4cbee55ce5
Add the list of the currently implemented extra tags to the `replace_extra_tags` documentation.
2023-05-08 02:05:45 +01:00
Pedro de Oliveira
49b3c950d2
* Add documentation to every function
...
* Add main crate documentation
* clippy fixes
* filenames -> file names, filename -> file name
2023-05-08 01:51:38 +01:00
Pedro de Oliveira
29fa9f5499
Allow to use "." as the input directory.
2023-05-08 01:17:53 +01:00
Pedro de Oliveira
321bd8c50b
Add tests to `get_file_list`.
2023-05-08 01:05:12 +01:00
Pedro de Oliveira
81528cb65e
Move the replacement algorithm out of the main into the replace_name function.
...
Add some basic unit tests.
2023-05-08 00:51:17 +01:00
Pedro de Oliveira
35b55d4249
Rewrite the `--wildcard` phrase so that it looks like the previous ones.
2023-05-08 00:05:27 +01:00
Pedro de Oliveira
f102f19c33
Fix typo.
2023-05-07 23:44:48 +01:00
Pedro de Oliveira
8870c915d1
Document the `--wildcard` argument.
2023-05-07 23:32:14 +01:00
Pedro de Oliveira
0770290a35
Better example.
2023-05-07 23:25:17 +01:00
Pedro de Oliveira
3944583aef
Implement extra tags.
2023-05-07 23:20:33 +01:00
Pedro de Oliveira
713e4f9f7a
Fix example to match the example below it.
2023-05-07 21:55:54 +01:00
Pedro de Oliveira
bc1e2c8e9a
Explain that Rust is needed.
...
Explain a bit better the `--pattern` argument.
2023-05-07 20:49:26 +01:00
Pedro de Oliveira
e01fccd3c7
Remove uneeded part in example.
2023-05-07 20:40:39 +01:00
Pedro de Oliveira
0b6ff372cd
Uppercase in the example.
2023-05-07 20:37:56 +01:00
Pedro de Oliveira
f41ab19eb1
Add missing escape.
2023-05-07 20:32:02 +01:00
Pedro de Oliveira
433afc6d49
Link to LICENSE.
2023-05-07 20:23:57 +01:00
Pedro de Oliveira
eb7035c8d5
Add example.
2023-05-07 20:22:45 +01:00
Pedro de Oliveira
6c6fb31b7b
Add README.md and LICENSE.
2023-05-07 20:18:13 +01:00
Pedro de Oliveira
d25f467665
First commit. WIP, just prints the mv command. Untested.
2023-05-07 20:01:12 +01:00