diff --git a/Cargo.lock b/Cargo.lock index 8a0a76f..aaca63d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -587,20 +587,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" -[[package]] -name = "manning-lp-async-rust-project" -version = "0.1.0" -dependencies = [ - "actix", - "actix-rt", - "async-trait", - "chrono", - "clap", - "time 0.3.22", - "tokio", - "yahoo_finance_api", -] - [[package]] name = "markup5ever" version = "0.11.0" @@ -1124,6 +1110,20 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" +[[package]] +name = "stock_cli" +version = "0.1.0" +dependencies = [ + "actix", + "actix-rt", + "async-trait", + "chrono", + "clap", + "time 0.3.22", + "tokio", + "yahoo_finance_api", +] + [[package]] name = "string_cache" version = "0.8.7" diff --git a/Cargo.toml b/Cargo.toml index adafe07..76d025e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Claus Matzinger ", "Param Pal Singh + +OPTIONS: + -f, --from + Required start date for the period to fetch + + -h, --help + Print help information + + -m, --max-iterations + Optional number of max iterations to run [default: 1] + + -s, --source + Optional .txt source file to read symbols from [default: sp500.may.2020.txt] + + -V, --version + Print version information + +``` diff --git a/src/main.rs b/src/main.rs index 94aec2f..2b1231d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use std::{error::Error, time::Duration}; use actix::Actor; use chrono::{DateTime, Utc}; use clap::Parser; -use manning_lp_async_rust_project::{ +use stock_cli::{ actors::{ DataLoadActor, DataLoadMessage, DataProcessActor, DataProcessMessage, DataSaveActor, DataSaveMessage, diff --git a/src/types/mod.rs b/src/types/mod.rs index b5be0dd..8935f73 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -6,8 +6,8 @@ use crate::calculations::{max, min, n_window_sma, price_diff}; #[derive(Parser, Debug)] #[clap( version = "1.0", - author = "Claus Matzinger", - about = "A Manning LiveProject: async Rust" + author = "Param Singh, Claus Matzinger", + about = "A Manning LiveProject: Async Streams in Rust" )] pub struct Opts { /// Optional .txt source file to read symbols from