Awiteb
5f357b89cb
Reviewed-on: #15 Co-authored-by: Awiteb <a@4rs.nl> Co-committed-by: Awiteb <a@4rs.nl>
25 lines
930 B
Rust
25 lines
930 B
Rust
// Lprs - A local CLI vault manager
|
|
// Copyright (C) 2024 Awiteb <a@4rs.nl>
|
|
//
|
|
// 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 <https://www.gnu.org/licenses/gpl-3.0.html>.
|
|
|
|
use crate::{
|
|
vault::{vault_state::*, Vaults},
|
|
LprsResult,
|
|
};
|
|
|
|
/// Trait to run the command
|
|
pub trait RunCommand {
|
|
fn run(self, vault_manager: Vaults<Plain>) -> LprsResult<()>;
|
|
}
|