mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-08-07 09:43:53 +00:00
Merge pull request #11 from 0xrsydn/fix/dead-flags-financials-earnings
fix(cli): remove ignored financials and earnings flags
This commit is contained in:
commit
df80a8201a
1 changed files with 4 additions and 27 deletions
|
|
@ -111,23 +111,9 @@ pub enum StocksSubcommand {
|
||||||
#[command(about = "Get company profile")]
|
#[command(about = "Get company profile")]
|
||||||
Profile { symbol: String },
|
Profile { symbol: String },
|
||||||
#[command(about = "Get financial statements")]
|
#[command(about = "Get financial statements")]
|
||||||
Financials {
|
Financials { symbol: String },
|
||||||
symbol: String,
|
|
||||||
#[arg(long, default_value = "income")]
|
|
||||||
statement: String,
|
|
||||||
},
|
|
||||||
#[command(about = "Get earnings report")]
|
#[command(about = "Get earnings report")]
|
||||||
Earnings {
|
Earnings { symbol: String },
|
||||||
symbol: String,
|
|
||||||
#[arg(long)]
|
|
||||||
annual: bool,
|
|
||||||
#[arg(long)]
|
|
||||||
quarterly: bool,
|
|
||||||
#[arg(long)]
|
|
||||||
forecast: bool,
|
|
||||||
#[arg(long)]
|
|
||||||
history: bool,
|
|
||||||
},
|
|
||||||
#[command(about = "Get crowd sentiment")]
|
#[command(about = "Get crowd sentiment")]
|
||||||
Sentiment { symbol: String },
|
Sentiment { symbol: String },
|
||||||
#[command(about = "Get AI insights")]
|
#[command(about = "Get AI insights")]
|
||||||
|
|
@ -397,10 +383,7 @@ pub fn handle(
|
||||||
})?;
|
})?;
|
||||||
render_profile(&profile, &config.output)
|
render_profile(&profile, &config.output)
|
||||||
}
|
}
|
||||||
StocksSubcommand::Financials {
|
StocksSubcommand::Financials { symbol } => {
|
||||||
symbol,
|
|
||||||
statement: _,
|
|
||||||
} => {
|
|
||||||
let resolved = crate::api::resolve_symbol(symbol, &config.exchange)?;
|
let resolved = crate::api::resolve_symbol(symbol, &config.exchange)?;
|
||||||
let financials: FinancialStatements =
|
let financials: FinancialStatements =
|
||||||
fetch_msn_only(&resolved, config.provider, || {
|
fetch_msn_only(&resolved, config.provider, || {
|
||||||
|
|
@ -408,13 +391,7 @@ pub fn handle(
|
||||||
})?;
|
})?;
|
||||||
render_financials(&financials, &config.output)
|
render_financials(&financials, &config.output)
|
||||||
}
|
}
|
||||||
StocksSubcommand::Earnings {
|
StocksSubcommand::Earnings { symbol } => {
|
||||||
symbol,
|
|
||||||
annual: _,
|
|
||||||
quarterly: _,
|
|
||||||
forecast: _,
|
|
||||||
history: _,
|
|
||||||
} => {
|
|
||||||
let resolved = crate::api::resolve_symbol(symbol, &config.exchange)?;
|
let resolved = crate::api::resolve_symbol(symbol, &config.exchange)?;
|
||||||
let earnings: EarningsReport = fetch_msn_only(&resolved, config.provider, || {
|
let earnings: EarningsReport = fetch_msn_only(&resolved, config.provider, || {
|
||||||
MsnProvider::new(false).earnings(&resolved)
|
MsnProvider::new(false).earnings(&resolved)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue