From a27b2e3f66f68c27416ece00f8eb28475eda8d4e Mon Sep 17 00:00:00 2001 From: TheAwiteb Date: Sat, 23 Dec 2023 23:04:47 +0300 Subject: [PATCH] Add license header to source files --- src/cli/add_command.rs | 16 ++++++++++++++++ src/cli/clean_command.rs | 16 ++++++++++++++++ src/cli/list_command.rs | 16 ++++++++++++++++ src/cli/mod.rs | 16 ++++++++++++++++ src/errors.rs | 16 ++++++++++++++++ src/macros.rs | 16 ++++++++++++++++ src/main.rs | 16 ++++++++++++++++ src/password/cipher.rs | 16 ++++++++++++++++ src/password/mod.rs | 16 ++++++++++++++++ src/password/validator.rs | 16 ++++++++++++++++ src/traits.rs | 16 ++++++++++++++++ src/utils.rs | 16 ++++++++++++++++ 12 files changed, 192 insertions(+) diff --git a/src/cli/add_command.rs b/src/cli/add_command.rs index 12185d7..37fe700 100644 --- a/src/cli/add_command.rs +++ b/src/cli/add_command.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use clap::Args; use crate::{ diff --git a/src/cli/clean_command.rs b/src/cli/clean_command.rs index 8d41730..0fc870b 100644 --- a/src/cli/clean_command.rs +++ b/src/cli/clean_command.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use std::fs; use clap::Args; diff --git a/src/cli/list_command.rs b/src/cli/list_command.rs index 4b70e97..578ea61 100644 --- a/src/cli/list_command.rs +++ b/src/cli/list_command.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use clap::Args; use comfy_table::Table; use regex::Regex; diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 32f8a09..3ba8a0b 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use std::path::PathBuf; use clap::Parser; diff --git a/src/errors.rs b/src/errors.rs index 608aedf..eddf2e4 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use std::{process::ExitCode, string::FromUtf8Error}; pub type Result = std::result::Result; diff --git a/src/macros.rs b/src/macros.rs index a96e572..2327da9 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + /// Creates commands macro, to create the `Commands` enum and impl `RunCommand` to it. /// /// ### Notes: diff --git a/src/main.rs b/src/main.rs index 466caf5..7226903 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use std::process::ExitCode; use base64::{ diff --git a/src/password/cipher.rs b/src/password/cipher.rs index cc69b6b..57bb7b9 100644 --- a/src/password/cipher.rs +++ b/src/password/cipher.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use base64::Engine; use soft_aes::aes::{aes_dec_ecb, aes_enc_ecb}; diff --git a/src/password/mod.rs b/src/password/mod.rs index cc30b85..e400b0d 100644 --- a/src/password/mod.rs +++ b/src/password/mod.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use std::{fs, path::PathBuf}; use clap::Parser; diff --git a/src/password/validator.rs b/src/password/validator.rs index c7abde4..ec21fd4 100644 --- a/src/password/validator.rs +++ b/src/password/validator.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use std::{fs, path::Path}; use crate::PassrsResult; diff --git a/src/traits.rs b/src/traits.rs index cb8bf7d..8183d13 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use crate::{password::Passwords, PassrsResult}; /// Trait to run the command diff --git a/src/utils.rs b/src/utils.rs index 392b8f3..bf0c205 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,3 +1,19 @@ +// Local CLI password manager +// Copyright (C) 2024 Awiteb +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + use std::{fs, path::PathBuf}; use crate::{PassrsError, PassrsResult};