Add dump() stub
This commit is contained in:
parent
35fd0f2b9c
commit
c6e9a0a4a4
2 changed files with 28 additions and 4 deletions
23
imag-store/src/dump.rs
Normal file
23
imag-store/src/dump.rs
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
//
|
||||||
|
// imag - the personal information management suite for the commandline
|
||||||
|
// Copyright (C) 2015, 2016 Matthias Beyer <mail@beyermatthias.de> 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!()
|
||||||
|
}
|
||||||
|
|
|
@ -64,10 +64,10 @@ use update::update;
|
||||||
use verify::verify;
|
use verify::verify;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let rt = generate_runtime_setup("imag-store",
|
let mut rt = generate_runtime_setup("imag-store",
|
||||||
&version!()[..],
|
&version!()[..],
|
||||||
"Direct interface to the store. Use with great care!",
|
"Direct interface to the store. Use with great care!",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
rt.cli()
|
rt.cli()
|
||||||
.subcommand_name()
|
.subcommand_name()
|
||||||
|
@ -85,6 +85,7 @@ fn main() {
|
||||||
"retrieve" => retrieve(&rt),
|
"retrieve" => retrieve(&rt),
|
||||||
"update" => update(&rt),
|
"update" => update(&rt),
|
||||||
"verify" => verify(&rt),
|
"verify" => verify(&rt),
|
||||||
|
"dump" => dump(&mut rt),
|
||||||
_ => {
|
_ => {
|
||||||
debug!("Unknown command");
|
debug!("Unknown command");
|
||||||
// More error handling
|
// More error handling
|
||||||
|
|
Loading…
Reference in a new issue