Ely Office: six offline-first desktop apps in Rust and GPUI
ElyDoc, ElyTable, ElyShow (LibreOfficeKit), ElyPDF (MuPDF), ElyTree (Git), ElyMark (Milkdown and CodeMirror in CEF). ElyMail and ElyAgent follow.
This commit is contained in:
817 files changed
+143101
No files matched your search
@@ -0,0 +1,18 @@
|
||||
use std::io;
|
||||
|
||||
fn main() {
|
||||
// As the app: ELY_LOG, info by default.
|
||||
env_logger::Builder::from_env(env_logger::Env::new().filter_or("ELY_LOG", "info")).init();
|
||||
let args: Vec<String> = std::env::args().collect();
|
||||
let Some((install, profile)) = args.get(1).zip(args.get(2)) else {
|
||||
log::error!("usage: ely-lok-worker <install-path> <profile-dir>");
|
||||
std::process::exit(2);
|
||||
};
|
||||
let input = io::stdin();
|
||||
let output = io::stdout();
|
||||
if let Err(error) = ely_lok::worker_run(install, profile, input, output) {
|
||||
// A record, so the app's relay passes it on.
|
||||
log::error!("lok-worker: {error}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user