golicense
is a command-line tool written in Go that makes it easy to add license files to your local projects. It allows you to select from popular open-source licenses and write them directly to your project directory. This tool is designed to streamline the process of managing licenses, making your projects compliant and ready for distribution.
- Simple Command-Line Interface: Add licenses with a single command.
- Multiple License Options: Choose from popular licenses such as MIT, Apache-2.0, and more.
- Automatic License File Creation: Writes the selected license text to a
LICENSE
file in your project directory. - Easy Integration: Suitable for use in build scripts or automated workflows.
To install golicense
, you need to have Go installed. Run the following command:
go install github.com/abhigyan-mohanta/golicense@latest
golicense add --type MIT
Replace MIT
with the desired license type (e.g., Apache-2.0
, GPL-3.0
, BSD-3-Clause
,MPL-2.0
). This will create a LICENSE
file in your current directory containing the selected license.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Fork the repo, make your changes, and submit a pull request. Please ensure your code adheres to the Go standards and includes appropriate tests.
If you encounter any problems, please open an issue on GitHub.
- Inspired by the need to simplify license management in open-source projects.
- Built with Go.