Skip to content

Commit 7a5190e

Browse files
authored
add rust as preset and refactor (#12)
* merge * add rust as preset and refactor * add rust as preset and refactor * add rust as preset and refactor * readme
1 parent d6a3101 commit 7a5190e

35 files changed

Lines changed: 699 additions & 146 deletions

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,6 +1,6 @@
11
[package]
22
name = "cpa"
3-
version = "0.0.10"
3+
version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ curl -sSL https://raw.githubusercontent.com/ysawa0/create-python-app/main/instal
1818

1919
```bash
2020
# cpa will be installed to ~/bin/cpa
21-
# add ~/bin to your PATH
22-
# eg: echo "export PATH=$PATH:~/bin" >> ~/.zshrc
21+
# The installer will add ~/bin to your PATH
2322
```
2423

2524
### Windows
@@ -43,26 +42,28 @@ cpa create --name myproject
4342

4443
Optional params:
4544

46-
- `--preset`: Specifies a Python version for the project. Defaults to "python3.10"
45+
- `--preset`: Specifies a preset for the project. Defaults to "python3.10". "pythonx.yz" and "rust" are supported.
4746

4847
Example:
4948

5049
```bash
5150
cpa create --name myproject --preset python3.10
51+
cpa create --name myproject --preset rust
5252
```
5353

5454
Update current working directory with CPA preset.
5555

5656
```bash
5757
cpa update --name myproject --preset python3.10
58+
cpa create --name myproject --preset rust
5859
```
5960

6061
# Goals
6162

6263
- **Speed up Project Creation**: Reduce the time spent on repetitive setup tasks
6364
- **Best Practices**: Encourage best practices for code quality, formatting, and style by including configs for tools like `black`, `isort`, and `flake8`.
6465
- **Automation**: Automate tasks such as generating `.gitignore` files, setting up pre-commit hooks, and configuring code linters and formatters.
65-
- Golang, Rust support planned
66+
- Golang support planned
6667

6768
# Contributions and Feedback
6869

0 commit comments

Comments
 (0)