diff --git a/src/clap_parsers.rs b/src/clap_parsers.rs index f96ab61..05a423e 100644 --- a/src/clap_parsers.rs +++ b/src/clap_parsers.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use crate::{LprsError, LprsResult}; diff --git a/src/cli/add_command.rs b/src/cli/add_command.rs index 9fa76e1..e616a50 100644 --- a/src/cli/add_command.rs +++ b/src/cli/add_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use clap::Args; diff --git a/src/cli/change_master_password_command.rs b/src/cli/change_master_password_command.rs index 8fd249d..c3a11c8 100644 --- a/src/cli/change_master_password_command.rs +++ b/src/cli/change_master_password_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use clap::Args; use sha2::{Digest, Sha256}; diff --git a/src/cli/clean_command.rs b/src/cli/clean_command.rs index 85e71e1..634115d 100644 --- a/src/cli/clean_command.rs +++ b/src/cli/clean_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::fs; diff --git a/src/cli/completion_command.rs b/src/cli/completion_command.rs index c125cc7..3d96c61 100644 --- a/src/cli/completion_command.rs +++ b/src/cli/completion_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::io; diff --git a/src/cli/edit_command.rs b/src/cli/edit_command.rs index c9a949a..6241bf4 100644 --- a/src/cli/edit_command.rs +++ b/src/cli/edit_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use clap::Args; diff --git a/src/cli/export_command.rs b/src/cli/export_command.rs index 061785d..5a9c7d4 100644 --- a/src/cli/export_command.rs +++ b/src/cli/export_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::{fs, io::Error as IoError, io::ErrorKind as IoErrorKind, path::PathBuf}; diff --git a/src/cli/gen_command.rs b/src/cli/gen_command.rs index e466bce..e069a23 100644 --- a/src/cli/gen_command.rs +++ b/src/cli/gen_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::num::NonZeroU64; diff --git a/src/cli/get_command.rs b/src/cli/get_command.rs index f443a45..237b1c1 100644 --- a/src/cli/get_command.rs +++ b/src/cli/get_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::str::FromStr; diff --git a/src/cli/import_command.rs b/src/cli/import_command.rs index b2f9dc8..fce8d22 100644 --- a/src/cli/import_command.rs +++ b/src/cli/import_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::{ fs::{self, File}, diff --git a/src/cli/list_command.rs b/src/cli/list_command.rs index dd5552a..522fff8 100644 --- a/src/cli/list_command.rs +++ b/src/cli/list_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use clap::Args; use inquire::{InquireError, Select}; diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 251f47b..1273472 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::{fs, path::PathBuf}; @@ -79,7 +79,7 @@ impl_commands!(Commands, Add Remove List Clean Edit Gen Get Export Import Change /// Header message, used in the help message const HEADER: &str = r#"Copyright (C) 2024 Awiteb -License GNU GPL-3.0-or-later +License GNU GPL-3.0-or-later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. diff --git a/src/cli/remove_command.rs b/src/cli/remove_command.rs index 872c3b9..28d6323 100644 --- a/src/cli/remove_command.rs +++ b/src/cli/remove_command.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use clap::Args; diff --git a/src/errors.rs b/src/errors.rs index ebcd46e..e5e2253 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::{io, process::ExitCode, result, string::FromUtf8Error}; diff --git a/src/macros.rs b/src/macros.rs index 9eeac38..42ed4a8 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . /// Impl `LprsCommand` to the given subcommand. /// diff --git a/src/main.rs b/src/main.rs index 782fceb..7a76b43 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,12 @@ // // 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 +// 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 . +// along with this program. If not, see . + #![doc = include_str!("../README.md")] use std::env; diff --git a/src/traits.rs b/src/traits.rs index 8b8be06..c56d035 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use crate::{vault::Vaults, LprsResult}; diff --git a/src/utils.rs b/src/utils.rs index 9551236..eb5ed46 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::collections::BTreeMap; use std::{fs, path::PathBuf}; diff --git a/src/vault/bitwarden.rs b/src/vault/bitwarden.rs index ed22bdf..e777123 100644 --- a/src/vault/bitwarden.rs +++ b/src/vault/bitwarden.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . // This file is not important, it is just a struct that is used to serialize and // deserialize the vaults from and to the BitWarden format. diff --git a/src/vault/cipher.rs b/src/vault/cipher.rs index 6d1c162..0a5f2db 100644 --- a/src/vault/cipher.rs +++ b/src/vault/cipher.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::time::{SystemTime, UNIX_EPOCH}; diff --git a/src/vault/mod.rs b/src/vault/mod.rs index be76a67..899d1f1 100644 --- a/src/vault/mod.rs +++ b/src/vault/mod.rs @@ -1,5 +1,5 @@ // Lprs - A local CLI vaults manager. For human and machine use -// Copyright (C) 2024 Awiteb +// 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 @@ -8,11 +8,11 @@ // // 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 +// 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 . +// along with this program. If not, see . use std::{collections::BTreeMap, fmt, fs, path::PathBuf};