mirror of
https://github.com/urbit/ares.git
synced 2024-12-24 13:55:23 +03:00
serf: implement %live %exit
This commit is contained in:
parent
012a7bac22
commit
be96c495a8
@ -222,15 +222,18 @@ pub fn serf(constant_hot_state: &[HotEntry]) -> io::Result<()> {
|
|||||||
tas!(b"live") => {
|
tas!(b"live") => {
|
||||||
let inner = slot(writ, 6)?.as_direct().unwrap();
|
let inner = slot(writ, 6)?.as_direct().unwrap();
|
||||||
match inner.data() {
|
match inner.data() {
|
||||||
tas!(b"cram") => eprintln!("cram"),
|
tas!(b"cram") => eprintln!("\r %cram: not implemented"),
|
||||||
tas!(b"exit") => eprintln!("exit"),
|
tas!(b"exit") => {
|
||||||
|
eprintln!("\r %exit");
|
||||||
|
std::process::exit(0);
|
||||||
|
}
|
||||||
tas!(b"save") => {
|
tas!(b"save") => {
|
||||||
// XX what is eve for?
|
// XX what is eve for?
|
||||||
eprintln!("save");
|
eprintln!("\r %save");
|
||||||
context.sync();
|
context.sync();
|
||||||
}
|
}
|
||||||
tas!(b"meld") => eprintln!("meld"),
|
tas!(b"meld") => eprintln!("\r %meld: not implemented"),
|
||||||
tas!(b"pack") => eprintln!("pack"),
|
tas!(b"pack") => eprintln!("\r %pack: not implemented"),
|
||||||
_ => eprintln!("unknown live"),
|
_ => eprintln!("unknown live"),
|
||||||
}
|
}
|
||||||
context.live();
|
context.live();
|
||||||
|
Loading…
Reference in New Issue
Block a user