Swiflicense: The Swift Way to Generate Licenses for your software
Swiflicense is a command line tool for generating a license for your software right from the command line interface. This tool is written in Swift and allows you to quickly and easily generate a license for your software, without having to leave the command line.
To install Swiflicense, you will need to have Swift installed on your system. Once you have Swift installed, you can clone the Swiflicense repository and compile the tool by running the following commands:
git clone https://github.com/ishaanbedi/swiflicense.git cd swiflicense swift build -c release
After the tool has been compiled, you can move the binary file to a directory included in your system path, such as
/usr/local/bin on macOS or
/usr/bin on Linux.
To do this, you can use the
mv command, as shown below:
mv .build/release/swiflicense /usr/local/bin/swiflicense
Alternatively, you can install Swiflicense using a single command that will clone the repository, compile the tool, and move the binary file to the appropriate directory all in one step:
git clone https://github.com/ishaanbedi/swiflicense.git && cd swiflicense && swift build -c release; sudo mv .build/release/swiflicense /usr/local/bin/swiflicense
Once Swiflicense has been installed, you can use the swiflicense command to generate a license for your software.
The swiflicense command takes three options: -n for the name to include in the license,
-y for the year to include in the license, and
-t for the type of license to generate.
For example, to generate an
MIT license for the year
2020 with your name, you can run the following command:
swiflicense -n "Ishaan Bedi" -y 2020 -t mit
Swiflicense supports the following license types:
To see a full list of available options and usage information for Swiflicense, you can run the
swiflicense -h command.
Checkout Swiflicense at GitHub.
In conclusion, Swiflicense is a convenient and easy-to-use command line tool for generating licenses for your software.
With Swiflicense, you can quickly and easily generate a license right from the command line, without having to leave your terminal.
Thank you for reading this far.