diff options
author | Matan Kushner <hello@matchai.me> | 2019-04-11 19:31:30 -0400 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-04-11 19:31:30 -0400 |
commit | c1f5a733c991abc8575832a8280ef683127e2e5c (patch) | |
tree | 19421e96c004e3091c7157eb7f3a4a0f546da219 /src/print.rs | |
parent | d5493d236d402497509b7a3248dd8919bbb34c6c (diff) |
More progress in Node section
Diffstat (limited to 'src/print.rs')
-rw-r--r-- | src/print.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/print.rs b/src/print.rs index 4251a7207..4371c5ece 100644 --- a/src/print.rs +++ b/src/print.rs @@ -1,5 +1,5 @@ -use std::io::{self, Write}; use clap::ArgMatches; +use std::io::{self, Write}; use crate::modules; use crate::modules::Segment; @@ -7,12 +7,16 @@ use crate::modules::Segment; pub fn prompt(args: ArgMatches) { let default_prompt = vec!["directory", "node", "line_break", "character"]; + // TODO: + // - List files in directory + // - Index binaries in PATH + let stdout = io::stdout(); let mut handle = stdout.lock(); // Write a new line before the prompt write!(handle, "{}", "\n").unwrap(); - + default_prompt .into_iter() .map(|module| modules::handle(module, &args)) |