Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (33 loc) · 1.08 KB

Fizzy

A simple CLI built in Rust to generate files with boilerplate.


Usage/List of Commands

  • Add command will prompt you to enter the boilerplate for the extension you want to add. Once you have entered the boilerplate, simply press Ctrl+Z. You can also use this command to override the boilerplate for an existing extension For example:

     #Boilerplate for .cpp
     fizzy add cpp 

    or

     #Having a separate boilerplate for files with extension .test.cpp
     fizzy add test.cpp
  • Create command will figure out the extension from the file name (it is important that you write the extension too along with the file name) and create the file in the current path with the set boilerplate.

     fizzy create main.cpp 
  • Remove command will remove the boilerplate set for that extension.

     fizzy remove cpp

How to run project

Before cloning the project, make sure you have rust setup on your computer.

Once that's done, simply type in your terminal:

cargo run 

or

cargo run --release