update for the new config

This commit is contained in:
2025-01-19 18:43:53 -05:00
parent ab68569ef6
commit d72681c999
3 changed files with 53 additions and 45 deletions

View File

@ -13,7 +13,7 @@ pub struct Cli {
///Download and install plugin(s)
#[arg(long)]
pub add_plugins: Vec<String>,
//Remove plugin(s)
///Remove plugin(s)
#[arg(long)]
pub remove_plugins: Vec<String>,
///Start the shell with no rc configurations

View File

@ -1,13 +1,17 @@
use libpse::session;
mod cli;
fn main() {
if let Some(args) = cli::parser() {
let shell_config = libpse::session::Config {
let shell_config = session::Config {
norc: args.norc,
nojit: args.nojit,
nosandbox: args.nosandbox,
vm: session::VmConfig {
sandbox: args.nosandbox,
jit: args.nosandbox
},
};
let mut shell_instance = libpse::session::LambdaShell::create(shell_config);
let mut shell_instance = session::Pse::create(shell_config);
shell_instance.start();
};
}