summaryrefslogtreecommitdiffstats
path: root/src/print.rs
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-04-11 19:31:30 -0400
committerMatan Kushner <hello@matchai.me>2019-04-11 19:31:30 -0400
commitc1f5a733c991abc8575832a8280ef683127e2e5c (patch)
tree19421e96c004e3091c7157eb7f3a4a0f546da219 /src/print.rs
parentd5493d236d402497509b7a3248dd8919bbb34c6c (diff)
More progress in Node section
Diffstat (limited to 'src/print.rs')
-rw-r--r--src/print.rs8
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))