4 releases
0.2.1 | May 18, 2023 |
---|---|
0.2.0 | Jun 13, 2022 |
0.1.1 | Jun 7, 2022 |
0.1.0 | Jun 6, 2022 |
#28 in #leetcode
6KB
103 lines
leet
A tool to quickly create and open projects for LeetCode solutions
Motivation
Cargo doesn't allow package names to start with numbers but folder names starting with numbers make for very easy sorting in filesystems so I previously spent a lot of time manually typing out the folder and project name. This project simplifies that into one command. Yes, this probably could have been a bash script.
Usage
leet "496. Next Greater Element I"
The input gets converted and the following commands are then run:
cargo new 0496_next-greater-element-i --name next-greater-element-i --lib
C:\Program Files\Microsoft VS Code\Code.exe .\0496_next-greater-element-i\
Features
- Blazing fast
- Written in Rust
Maybe Future features
- Generate project with a template using cargo-generate
- Be code editor agnostic (how much do people use
$EDITOR
?)
Dependencies
~6.5MB
~116K SLoC