diff options
author | Matan Kushner <hello@matchai.me> | 2019-04-03 20:14:26 -0400 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-04-03 20:14:26 -0400 |
commit | e2ba7a13542c0fcefee3e6e85d8b0bf3ec6c8265 (patch) | |
tree | a3b3872846b52012ce3327557b764f9665a6ec7d /src/main.rs | |
parent | 41ee54933bd2820b1ba97726514f785f1ac73824 (diff) |
Add segment structure and logic
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 8a6cd5fd7..ab7e04e56 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,19 @@ #[macro_use] extern crate clap; +extern crate ansi_term; + +mod modules; +mod print; + +use ansi_term::Style; use clap::App; -use std::io; -mod char; +pub struct Segment { + style: Style, + value: String, + prefix: Option<Box<Segment>>, + suffix: Option<Box<Segment>>, +} fn main() { App::new("Starship") @@ -12,9 +22,8 @@ fn main() { .version(crate_version!()) // pull the authors from Cargo.toml .author(crate_authors!()) + .after_help("https://github.com/matchai/starship") .get_matches(); - prompt::char(); - // let stdout = io::stdout(); - // let mut handle = io::BufWriter::new(stdout); + print::prompt(); } |