prompt configuration validated

Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
Ava Hahn 2023-01-22 19:47:05 -08:00
parent 71b70fe4b8
commit 45453f819f
Signed by untrusted user who does not match committer: affine
GPG key ID: 3A4645B8CF806069
2 changed files with 2 additions and 5 deletions

View file

@ -33,8 +33,7 @@ In string lib
**** DONE Function to load configuration into Variable and Function tables **** DONE Function to load configuration into Variable and Function tables
**** DONE Configure in main shell **** DONE Configure in main shell
**** DONE manual verification of config settings **** DONE manual verification of config settings
**** FAILING manual verification of config defaults **** DONE manual verification of config defaults
Cannot get default CFG_RELISH_PROMPT. Unclear if this is a bug in FTable or config
*** TODO Help function *** TODO Help function
*** TODO Env function *** TODO Env function
*** TODO User variable declaration *** TODO User variable declaration

View file

@ -27,9 +27,7 @@ use std::io::{self, Write};
use std::rc::Rc; use std::rc::Rc;
fn prompt_default_callback(_: Ast, _: Rc<RefCell<VTable>>, _: Rc<RefCell<FTable>>) -> Ctr { fn prompt_default_callback(_: Ast, _: Rc<RefCell<VTable>>, _: Rc<RefCell<FTable>>) -> Ctr {
print!("λ "); return Ctr::String("λ ".to_string());
io::stdout().flush().unwrap();
return Ctr::None;
} }
pub fn configure(filename: String, vars: Rc<RefCell<VTable>>) -> Result<Rc<RefCell<FTable>>, String> { pub fn configure(filename: String, vars: Rc<RefCell<VTable>>) -> Result<Rc<RefCell<FTable>>, String> {