https://github.com/slingercode/ruset
I use this more often that you could imagine
https://github.com/slingercode/ruset
clap rust
Last synced: 12 months ago
JSON representation
I use this more often that you could imagine
- Host: GitHub
- URL: https://github.com/slingercode/ruset
- Owner: slingercode
- Created: 2023-06-09T20:06:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-23T16:22:43.000Z (about 3 years ago)
- Last Synced: 2025-07-03T03:04:38.768Z (12 months ago)
- Topics: clap, rust
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruset
## Instructions
**Build**
`cargo build --release`
**Install**
`./ruset && cargo install --path .`
**Run**
`ruset some/dir -l -y`
## Use cases
- **Perform a clean install of the `node_modules` folder on a project:** The reason for this
is that in a **private project** there are some changes on the Design System that we need to test
locally and that changes sometimes break the `node_modules` folder and Vite is not
loading the dependencies correctly.
Is that workflow what we want?... absolutely not. Is optimal? ... nope, but, this command just makes my life a little bit more easier 🥹
- **Install dependencies as `legacy`:** There are some old dependencies in the project that
we need to handle, this is actually a WIP but there are another priorities and we are taking
care of this issue in the free time... this is just an improvement for **one specific case**
- **Remove yalc local changes:** This is related to the first point. This feature comes handy when a new
DS breaking change is available
---
**How I expect the command to work**
```sh
ruset path/to/dir (opts)
```
If no path provided search the `node_module` folder inside the current directory (this is going to be my goto almost all the time)
```sh
ruset (opts)
```
---
### TODO
- [x] ~~Improve the `--help` command~~
- [x] ~~Manage special use cases, this means that the execution of the command should work with the args specified~~
- [ ] Refactor structs. The Execution and Args are identical, I need to investigate how can I improve that.
- [ ] Refactor execute logic. I'm not convinced on how the program works (`main.rs`) I need to fix that 😬