A blazing fast command line license generator for your open source projects written in Rust🚀

Overview

License Generator

demo

Overview

This is a blazing fast ⚡ , command line license generator for your open source projects written in Rust.

I know that GitHub has a great GUI to add licenses to projects but I always found myself doing too much work. First you have to go to GitHub, create a file, type 'LICENSE', pick a license, push it and then pull it locally. With this you can just generate the license locally and push it to GitHub.

I had not written some Rust code in a while so I made this simple project to brush up my Rust skills a bit (still very beginner).

Installation

Using Cargo

cargo install gen-license

From source

git clone https://github.com/nexxeln/license-generator.git
cd license-generator
cargo install --path .

If you don't have cargo installed, you can download the executable from the releases section.

Usage

gen-license

Contributing

  • Fork the repository
  • Create a branch
    git checkout -b fix/amazingFix
  • Commit your changes and push to your branch
    git commit -m "made an amazingFix"
    git push origin fix/amazingFix
  • Open a pull request
You might also like...
⚡ Blazing fast async/await HTTP client for Python written on Rust using reqwests

Reqsnaked Reqsnaked is a blazing fast async/await HTTP client for Python written on Rust using reqwests. Works 15% faster than aiohttp on average RAII

⚡ Blazing ⚡ fast ⚡ compiler for Cairo, written in 🦀 Rust 🦀

Cairo 1.0 🐺 ⚡ Blazing ⚡ fast ⚡ compiler for Cairo, written in 🦀 Rust 🦀 Report a Bug - Request a Feature - Ask a Question Getting Started Prerequisi

⚡️ Blazing fast terminal file manager written in Rust, based on async I/O.

Yazi - ⚡️ Blazing Fast Terminal File Manager Yazi ("duck" in Chinese) is a terminal file manager written in Rust, based on non-blocking async I/O. It

An open source, programmed in rust, privacy focused tool for reading programming resources (like stackoverflow) fast, efficient and asynchronous from the terminal.

Falion An open source, programmed in rust, privacy focused tool for reading programming resources (like StackOverFlow) fast, efficient and asynchronou

A robust, customizable, blazingly-fast, efficient and easy-to-use command line application to uwu'ify your text!
A robust, customizable, blazingly-fast, efficient and easy-to-use command line application to uwu'ify your text!

uwuifyy A robust, customizable, blazingly-fast, efficient and easy-to-use command line application to uwu'ify your text! Logo Credits: Jade Nelson Tab

This utility traverses through your filesystem looking for open-source dependencies that are seeking donations by parsing README.md and FUNDING.yml files
This utility traverses through your filesystem looking for open-source dependencies that are seeking donations by parsing README.md and FUNDING.yml files

This utility traverses through your filesystem looking for open-source dependencies that are seeking donations by parsing README.md and FUNDING.yml files

Save image from your clipboard 📋 as an image file directly from your command line! 🔥

Clpy 📋 Save copied image from clipboard as an image file directly from your command line! Note It works only on windows as of now. I'll be adding sup

Original source code for Practical Rust Projects 2nd ed. by Shing Lyu and Andrew Rzeznik

Apress Source Code This repository accompanies Practical Rust Projects 2nd ed. by Shing Lyu and Andrew Rzeznik (Apress, 2023). Download the files as a

⚡️ Lightning-fast and minimal calendar command line. Written in Rust 🦀
⚡️ Lightning-fast and minimal calendar command line. Written in Rust 🦀

⚡️ Lightning-fast and minimal calendar command line. It's similar to cal. Written in Rust 🦀

Comments
  • Use fuzzy selection?

    Use fuzzy selection?

    Fuzzy selection lets users type part of the name of the license to navigate quicker than using the arrow keys.

    The diagloguer crate that's currently being used supports this in a feature called fuzzy-select

    -dialoguer = "0.10.0"
    +dialoguer = {version = "0.10.0", features = ["fuzzy-select"]}
    

    (probably should also bump the version, currently the most recent release is "0.10.2")

    Then only two lines need to be changed

    --- a/src/helpers.rs
    +++ b/src/helpers.rs
    @@ -1,5 +1,5 @@
     use crate::license;
    -use dialoguer::{console::Style, theme::ColorfulTheme, Input, Select};
    +use dialoguer::{console::Style, theme::ColorfulTheme, Input, FuzzySelect};
     use license::LicenseContent;
     use std::{fs, io, process::Command};
    
    @@ -40,7 +40,7 @@ pub fn fill_content(license: &LicenseContent) {
     
     // select license
     pub fn select(selections: &Vec<String>) -> String {
    -    let selection = Select::with_theme(&ColorfulTheme::default())
    +    let selection = FuzzySelect::with_theme(&ColorfulTheme::default())
             .with_prompt("Choose a license")
             .default(0)
             .items(&selections[..])
    

    If you like this change I can create a PR.

    On my machine, this change only increases the binary by 26 kb.

    opened by Samathingamajig 1
Releases(0.1.2)
JiaShiwen 12 Nov 5, 2022
zoxide is a blazing fast replacement for your cd command

zoxide A smarter cd command for your terminal zoxide is a blazing fast replacement for your cd command, inspired by z and z.lua. It keeps track of the

Ajeet D'Souza 8.7k Dec 31, 2022
A Command-line tool to create, manage and deploy your python projects

PPM A Command-line tool to create, manage and deploy your python projects Table of Contents PPM Main Features Create a Project project.ini file Projec

FUSEN 6 Aug 30, 2022
A command line tool written in Rust and designed to be a modern build tool + package manager for C/C++ projects.

CCake CCake is a command line tool written in Rust and designed to be a modern build tool + package manager for C/C++ projects. Goals To be easily und

Boston Vanseghi 4 Oct 24, 2022
Get your loadshedding schedule in your calendar and never be left in the dark! Open-source, up-to-date, and developer friendly.

Loadshedding schedules in your digital calendar. No apps, no ads, up-to-date, and developer friendly. Get it • Key Features • Using the data • Project

Boyd Kane 117 Apr 26, 2023
An open source artifact manager. Written in Rust back end and an Vue front end to create a fast and modern experience

nitro_repo Nitro Repo is an open source free artifact manager. Written with a Rust back end and a Vue front end to create a fast and modern experience

Wyatt Jacob Herkamp 30 Dec 14, 2022
ripsecrets is a command-line tool to prevent committing secret keys into your source code.

ripsecrets is a command-line tool to prevent committing secret keys into your source code. ripsecrets has a few features that distinguish it from other secret scanning tools:

Brian Smith 588 Dec 30, 2022
zigfi is an open-source stocks, commodities and cryptocurrencies price monitoring CLI app, written fully in Rust, where you can organize assets you're watching easily into watchlists for easy access on your terminal.

zigfi zigfi is an open-source stocks, commodities and cryptocurrencies price monitoring CLI app, written fully in Rust, where you can organize assets

Aldrin Zigmund Cortez Velasco 18 Oct 24, 2022
Small command-line tool to switch monitor inputs from command line

swmon Small command-line tool to switch monitor inputs from command line Installation git clone https://github.com/cr1901/swmon cargo install --path .

William D. Jones 5 Aug 20, 2022
A simple cli to clone projects and fetch all projects in a GitHub org..

stupid-git A simple cli to clone projects and update all projects. get all repository from GitHub clone all pull all with git stash Usage create sgit.

Fengda Huang 5 Sep 15, 2022