Going somewhere.

This commit is contained in:
didier amyot committed 2022-12-05 09:44:05 -05:00
1 parent fc13cf7f99
commit 3dc963cdea
5 files changed
+63 -62

No files matched your search

+8 -8
View File
@@ -1,10 +1,9 @@
use std::any::Any;
use std::path::PathBuf;
use clap::{Arg, ArgAction, ArgMatches, Command, value_parser};
use serde::{Serialize};
use log::{debug, error, info};
use log::{debug, info};
use rusqlite::Connection;
use simple_logger::SimpleLogger;
@@ -184,15 +183,15 @@ mod test {
}
impl CommandLineUserLogic for TestCommandLineLogic {
fn create_user(&mut self, conn: &Connection, name: &String, public_key: &String) {
fn create_user(&mut self, _conn: &Connection, _name: &String, _public_key: &String) {
self.create_user_count += 1;
}
fn list_user(&mut self, conn: &Connection) {
fn list_user(&mut self, _conn: &Connection) {
self.list_user_count += 1;
}
fn list_securities(&mut self, conn: &Connection) {
fn list_securities(&mut self, _conn: &Connection) {
self.list_securities_count += 1;
}
}
@@ -293,7 +292,7 @@ impl CommandLineUserLogic for ProCommandLineLogic {
}
}
fn list_securities(&mut self, conn: &Connection) {
fn list_securities(&mut self, _conn: &Connection) {
todo!()
}
}
@@ -314,8 +313,9 @@ fn main() {
let m = command.get_matches();
set_logger(&m);
let conn = get_connection(&m);
// migrate(&conn);
let mut conn = get_connection(&m);
let migrations: Vec<String> = Vec::new();
migrate(&mut conn, & migrations);
let mut logic = ProCommandLineLogic::new();
process_command_line(&conn, &m, &mut logic);
}