diff --git a/README.md b/README.md index 7dc4f2b..5312b5a 100644 --- a/README.md +++ b/README.md @@ -232,3 +232,9 @@ This project is hosted at various sites, choose the one that suits you best: - [GitHub](https://github.com/iffse/pay-respects) - [GitLab](https://gitlab.com/iffse/pay-respects) +## Licenses + +- **Binaries**: AGPL-3.0 + - Core and modules +- **Libraries**: MPL-2.0 + - Parser and utils diff --git a/module-request-ai/src/main.rs b/module-request-ai/src/main.rs index 72026b9..4cb6d77 100644 --- a/module-request-ai/src/main.rs +++ b/module-request-ai/src/main.rs @@ -1,3 +1,19 @@ +// pay-respects-ai-module: Request AI suggestions for command errors +// Copyright (C) 2024 iff + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + use crate::requests::ai_suggestion; use colored::Colorize; use textwrap::fill; diff --git a/module-runtime-rules/Cargo.toml b/module-runtime-rules/Cargo.toml index eb8cad5..e3d52e0 100644 --- a/module-runtime-rules/Cargo.toml +++ b/module-runtime-rules/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" description = "Runtime rules module for the pay-respects CLI tool" homepage = "https://codeberg.org/iff/pay-respects" repository = "https://github.com/iffse/pay-respects" -license = "AGPL-3.0" +license = "AGPL-3.0-or-later" include = ["**/*.rs"] diff --git a/module-runtime-rules/src/main.rs b/module-runtime-rules/src/main.rs index 90ad6e4..2472c55 100644 --- a/module-runtime-rules/src/main.rs +++ b/module-runtime-rules/src/main.rs @@ -1,3 +1,19 @@ +// pay-respects-runtime-module: Runtime parsing of rules +// Copyright (C) 2024 iff + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + mod replaces; mod rules; diff --git a/parser/Cargo.toml b/parser/Cargo.toml index 385722a..a66011c 100644 --- a/parser/Cargo.toml +++ b/parser/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # for crates.io description = "Compile time rule parser for the pay-respects CLI tool" repository = "https://github.com/iffse/pay-respects" -license = "AGPL-3.0-or-later" +license = "MPL-2.0" include = [ "**/*.rs", "**/*.toml", diff --git a/parser/src/lib.rs b/parser/src/lib.rs index 63a799c..a38cced 100644 --- a/parser/src/lib.rs +++ b/parser/src/lib.rs @@ -1,18 +1,6 @@ -// pay-respects-parser: Compile time rule parser for pay-respects -// Copyright (C) 2023 iff - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as published -// by the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. - -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see . +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. use std::path::Path; diff --git a/parser/src/replaces.rs b/parser/src/replaces.rs index a73f13c..e77de91 100644 --- a/parser/src/replaces.rs +++ b/parser/src/replaces.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use proc_macro2::TokenStream as TokenStream2; use quote::quote; diff --git a/utils/Cargo.toml b/utils/Cargo.toml index 723e3e5..5d12b0c 100644 --- a/utils/Cargo.toml +++ b/utils/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" description = "Utilities for the pay-respects CLI tool" homepage = "https://codeberg.org/iff/pay-respects" repository = "https://github.com/iffse/pay-respects" -license = "AGPL-3.0-or-later" +license = "MPL-2.0" include = ["**/*.rs"] [dependencies] diff --git a/utils/src/evals.rs b/utils/src/evals.rs index 012f949..45cbe35 100644 --- a/utils/src/evals.rs +++ b/utils/src/evals.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::files::*; use regex_lite::Regex; diff --git a/utils/src/files.rs b/utils/src/files.rs index 3835882..6343050 100644 --- a/utils/src/files.rs +++ b/utils/src/files.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::evals::find_similar; pub fn get_path_files() -> Vec { diff --git a/utils/src/lib.rs b/utils/src/lib.rs index 730ae90..fa62193 100644 --- a/utils/src/lib.rs +++ b/utils/src/lib.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub mod evals; pub mod files;