Crates.io | add-license |
lib.rs | add-license |
version | 0.2.1 |
source | src |
created_at | 2024-05-19 02:42:40.812342 |
updated_at | 2024-06-06 15:39:27.348643 |
description | Subcommand for Cargo that creates a file with a user-defined license in the project's directory. |
homepage | |
repository | https://gitlab.com/marquess-projects/add-license |
max_upload_size | |
id | 1244627 |
size | 149,795 |
A Cargo subcommand that creates a file with a user-defined license in the project's directory.
Download from crates.io:
cargo add add-license
or download Source Code
Install the crate with:
cargo install add-license
or locally with cargo install --path .
cargo add-license
Creates the LICENSE file based on your Cargo.toml file. If you have 'authors' and
'year' attributes there, it will replace the <name>
, <year>
fields inside the
LICENSE file.
cargo add-license MIT
Replaces the 'license' attribute inside Cargo.toml and creates a LICENSE file. If you have 'authors' and
'year' attributes there, it will replace the <name>
, <year>
fields inside the
LICENSE file.
cargo add-license -y:2024
ONLY replaces the 'year' attribute inside Cargo.toml.
cargo add-license -a:Pablo_Marques,Carl_Menger
ONLY replaces the 'authors' attribute inside Cargo.toml.
All valid commands:
cargo add-license
cargo add-license MIT
cargo add-license -y:2024
cargo add-license -a:Mary_Johnson,Carl_Menger
cargo add-license MIT -y:2024
cargo add-license MIT -a:Marques
cargo add-license -y:2024 -a:Marques
cargo add-license -a:Marques -y:2024
cargo add-license MIT -y:2024 -a:Marques
cargo add-license MIT -a:Marques -y:2024
DO NOT FORGET
If you do not specify 'authors' and a 'year' in Cargo.toml OR in the command argument, your LICENSE will be created with the default <year>
and <authors>
fields.