Crates.io | leet |
lib.rs | leet |
version | 0.2.1 |
source | src |
created_at | 2022-06-06 10:32:57.749591 |
updated_at | 2023-05-18 19:19:46.152155 |
description | A tool to quickly create and open projects for LeetCode solutions |
homepage | https://github.com/adamjhc/leet |
repository | https://github.com/adamjhc/leet |
max_upload_size | |
id | 600698 |
size | 16,047 |
A tool to quickly create and open projects for LeetCode solutions
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.
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\
$EDITOR
?)