Compare commits

..

No commits in common. "d9a296a34e9a2d76b03d5278bb334ed142078925" and "d2a255ad2e6b34661b2510d9bf0d36abc4d817ad" have entirely different histories.

5 changed files with 13 additions and 39 deletions

31
Cargo.lock generated
View File

@ -263,7 +263,7 @@ dependencies = [
[[package]] [[package]]
name = "cryptools" name = "cryptools"
version = "0.12.4" version = "0.12.2"
dependencies = [ dependencies = [
"chrono", "chrono",
"crptls", "crptls",
@ -273,7 +273,7 @@ dependencies = [
"rust_decimal_macros", "rust_decimal_macros",
"rustyline", "rustyline",
"structopt", "structopt",
"termion 2.0.1", "termion",
"tui", "tui",
] ]
@ -662,22 +662,13 @@ version = "0.1.57"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
[[package]]
name = "redox_syscall"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags 1.3.2",
]
[[package]] [[package]]
name = "redox_termios" name = "redox_termios"
version = "0.1.1" version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76" checksum = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76"
dependencies = [ dependencies = [
"redox_syscall 0.1.57", "redox_syscall",
] ]
[[package]] [[package]]
@ -921,19 +912,7 @@ checksum = "c22cec9d8978d906be5ac94bceb5a010d885c626c4c8855721a4dbd20e3ac905"
dependencies = [ dependencies = [
"libc", "libc",
"numtoa", "numtoa",
"redox_syscall 0.1.57", "redox_syscall",
"redox_termios",
]
[[package]]
name = "termion"
version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "659c1f379f3408c7e5e84c7d0da6d93404e3800b6b9d063ba24436419302ec90"
dependencies = [
"libc",
"numtoa",
"redox_syscall 0.2.16",
"redox_termios", "redox_termios",
] ]
@ -999,7 +978,7 @@ dependencies = [
"either", "either",
"itertools", "itertools",
"log", "log",
"termion 1.5.5", "termion",
"unicode-segmentation", "unicode-segmentation",
"unicode-width", "unicode-width",
] ]

View File

@ -1,6 +1,6 @@
[package] [package]
name = "cryptools" name = "cryptools"
version = "0.12.4" version = "0.12.2"
authors = ["scoobybejesus <scoobybejesus@users.noreply.github.com>"] authors = ["scoobybejesus <scoobybejesus@users.noreply.github.com>"]
edition = "2021" edition = "2021"
description = "Command-line utility for processing cryptocurrency transactions into 'lots' and 'movements'." description = "Command-line utility for processing cryptocurrency transactions into 'lots' and 'movements'."
@ -21,13 +21,13 @@ path = "src/main.rs"
[dependencies] [dependencies]
crptls = { path = "crptls" } crptls = { path = "crptls" }
csv = "1.3.0" csv = "1.3.0"
rust_decimal = "1.32.0" rust_decimal = "1.32"
rust_decimal_macros = "1.32.0" rust_decimal_macros = "1.32"
chrono = { version = "0.4.31", features = ["serde"] } chrono = { version = "0.4.31", features = ["serde"] }
structopt = "0.2.10" structopt = "0.2.10"
rustyline = "12.0.0" rustyline = "12.0.0"
tui = { version = "0.8", optional = true, features = ['termion'] } tui = { version = "0.8", optional = true, features = ['termion'] }
termion = { version = "2.0.1", optional = true } termion = { version = "1.5", optional = true }
dotenv = "0.15.0" dotenv = "0.15.0"
[profile.release] [profile.release]

View File

@ -5,8 +5,8 @@ authors = ["scoobybejesus <scoobybejesus@users.noreply.github.com>"]
edition = "2021" edition = "2021"
[dependencies] [dependencies]
rust_decimal = "1.32.0" rust_decimal = "1.32"
rust_decimal_macros = "1.32.0" rust_decimal_macros = "1.32"
chrono = { version = "0.4.31", features = ["serde"] } chrono = { version = "0.4.31", features = ["serde"] }
csv = "1.3.0" csv = "1.3.0"
serde = { version = "1.0.189", features = ["derive"] } serde = { version = "1.0.189", features = ["derive"] }

View File

@ -137,11 +137,6 @@ pub fn export(
println!("Attempting to export:"); println!("Attempting to export:");
if app.to_print_by_idx.is_empty() {
println!(" None selected.");
return Ok(())
}
for report_idx in app.to_print_by_idx.iter() { for report_idx in app.to_print_by_idx.iter() {
println!(" {}", reports[*report_idx]); println!(" {}", reports[*report_idx]);

View File

@ -9,7 +9,7 @@ use std::error::Error;
use tui::Terminal; use tui::Terminal;
use tui::backend::TermionBackend; use tui::backend::TermionBackend;
use termion::raw::IntoRawMode; use termion::raw::IntoRawMode;
use termion::screen::IntoAlternateScreen; use termion::screen::AlternateScreen;
use termion::input::MouseTerminal; use termion::input::MouseTerminal;
use termion::event::Key; use termion::event::Key;
@ -32,7 +32,7 @@ pub (crate) fn print_menu_tui(
let stdout = io::stdout().into_raw_mode()?; let stdout = io::stdout().into_raw_mode()?;
let stdout = MouseTerminal::from(stdout); let stdout = MouseTerminal::from(stdout);
let stdout = stdout.into_raw_mode()?.into_alternate_screen()?; let stdout = AlternateScreen::from(stdout);
let backend = TermionBackend::new(stdout); let backend = TermionBackend::new(stdout);
let mut terminal = Terminal::new(backend)?; let mut terminal = Terminal::new(backend)?;
terminal.hide_cursor()?; terminal.hide_cursor()?;