Skip to content

Commit

Permalink
added a bunch more licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrannican committed Oct 4, 2024
1 parent 140f0e3 commit ecada91
Show file tree
Hide file tree
Showing 4 changed files with 2,054 additions and 1 deletion.
68 changes: 67 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Options {
#[arg(short, long)]
pub name: Option<String>,

/// Name to call the License. Defaults to LICENSE
/// Filename for the License. Defaults to LICENSE
#[arg(short, long, default_value_t = String::from("LICENSE"))]
pub filename: String,
}
Expand Down Expand Up @@ -49,4 +49,70 @@ pub enum LygenCommand {
#[command(flatten)]
options: Options,
},

/// GNU Affero General Public License v3.0
Agplv3 {
#[command(flatten)]
options: Options,
},

/// GNU Lesser General Public License v2.1
Lgplv2 {
#[command(flatten)]
options: Options,
},

/// GNU Lesser General Public License v3.0
Lgplv3 {
#[command(flatten)]
options: Options,
},

/// ISC License
Isc {
#[command(flatten)]
options: Options,
},

/// BSD Zero Clause License
Bsd0 {
#[command(flatten)]
options: Options,
},

/// BSD 2-Clause "Simplified" License
Bsd2 {
#[command(flatten)]
options: Options,
},

/// BSD 3-Clause "New" or "Revised" License
Bsd3 {
#[command(flatten)]
options: Options,
},

/// Mozilla Public License 2.0
Mozilla {
#[command(flatten)]
options: Options,
},

/// The Unlicense
Unlicense {
#[command(flatten)]
options: Options,
},

/// zlib License
Zlib {
#[command(flatten)]
options: Options,
},

/// Do What The F*ck You Want To Public License
Dwtfywt {
#[command(flatten)]
options: Options,
},
}
Loading

0 comments on commit ecada91

Please sign in to comment.