From c6e9a0a4a401878f2a2723c26a6d707a9f48be73 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 18 Jun 2017 18:57:15 +0200 Subject: [PATCH] Add dump() stub --- imag-store/src/dump.rs | 23 +++++++++++++++++++++++ imag-store/src/main.rs | 9 +++++---- 2 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 imag-store/src/dump.rs diff --git a/imag-store/src/dump.rs b/imag-store/src/dump.rs new file mode 100644 index 00000000..9463c46a --- /dev/null +++ b/imag-store/src/dump.rs @@ -0,0 +1,23 @@ +// +// imag - the personal information management suite for the commandline +// Copyright (C) 2015, 2016 Matthias Beyer and contributors +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; version +// 2.1 of the License. +// +// This library 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 +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +// + +pub fn dump(rt: &mut Runtime) { + unimplemented!() +} + diff --git a/imag-store/src/main.rs b/imag-store/src/main.rs index 7d2f46e9..d2ddc464 100644 --- a/imag-store/src/main.rs +++ b/imag-store/src/main.rs @@ -64,10 +64,10 @@ use update::update; use verify::verify; fn main() { - let rt = generate_runtime_setup("imag-store", - &version!()[..], - "Direct interface to the store. Use with great care!", - build_ui); + let mut rt = generate_runtime_setup("imag-store", + &version!()[..], + "Direct interface to the store. Use with great care!", + build_ui); rt.cli() .subcommand_name() @@ -85,6 +85,7 @@ fn main() { "retrieve" => retrieve(&rt), "update" => update(&rt), "verify" => verify(&rt), + "dump" => dump(&mut rt), _ => { debug!("Unknown command"); // More error handling