aix-rs 1.0.0

Manage AI gateway profiles and launch AI coding tools with the right credentials
1
2
3
4
5
6
7
8
9
10
use crate::commands::launch;
use crate::commands::ProfileSelection;
use color_eyre::Result;
use std::path::PathBuf;

pub fn run(selection: ProfileSelection, config_path: Option<PathBuf>, dry_run: bool) -> Result<()> {
    let env = launch::resolve_launch_env(selection, config_path, None)?;
    let shell = launch::detect_shell();
    launch::run_command(&shell, &[], &env, dry_run)
}