tranc-cli 0.1.1

Tranc CLI — trade indicator queries from the command line.
1
2
3
4
5
6
7
8
9
10
11
//! CLI configuration helpers.
//!
//! Configuration priority (highest first):
//! 1. `--api-url` CLI flag / `TRANC_API_URL` env var
//! 2. `~/.config/tranc/config.toml` (future)
//! 3. Built-in default: `https://api.tranc.ai`

/// Return the configured base URL, stripping any trailing slash.
pub fn canonical_base_url(raw: &str) -> String {
    raw.trim_end_matches('/').to_string()
}