starship/src/main.rs

30 lines
625 B
Rust
Raw Normal View History

2019-04-02 03:23:03 +00:00
#[macro_use]
extern crate clap;
2019-04-04 00:14:26 +00:00
extern crate ansi_term;
mod modules;
mod print;
use ansi_term::Style;
2019-04-02 03:23:03 +00:00
use clap::App;
2019-04-02 04:45:49 +00:00
2019-04-04 00:14:26 +00:00
pub struct Segment {
style: Style,
value: String,
prefix: Option<Box<Segment>>,
suffix: Option<Box<Segment>>,
}
2019-04-02 03:23:03 +00:00
fn main() {
2019-04-02 04:45:49 +00:00
App::new("Starship")
2019-04-02 03:30:53 +00:00
.about("The cross-platform prompt for astronauts. ✨🚀")
// pull the version number from Cargo.toml
.version(crate_version!())
// pull the authors from Cargo.toml
.author(crate_authors!())
2019-04-04 00:14:26 +00:00
.after_help("https://github.com/matchai/starship")
2019-04-02 03:30:53 +00:00
.get_matches();
2019-04-02 04:45:49 +00:00
2019-04-04 00:14:26 +00:00
print::prompt();
2019-04-02 03:23:03 +00:00
}