leet

Crates.ioleet
lib.rsleet
version0.2.1
sourcesrc
created_at2022-06-06 10:32:57.749591
updated_at2023-05-18 19:19:46.152155
descriptionA tool to quickly create and open projects for LeetCode solutions
homepagehttps://github.com/adamjhc/leet
repositoryhttps://github.com/adamjhc/leet
max_upload_size
id600698
size16,047
Adam Cox (adamjhc)

documentation

README

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?)
Commit count: 25

cargo fmt