abstract-cli 0.1.9

A high-performance Rust-native CLI coding agent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::config::AppConfig;
use crate::sessions;

pub fn run(args: &str, config: &AppConfig) -> anyhow::Result<()> {
    if args.is_empty() {
        // Show recent sessions
        sessions::list(config)?;
        eprintln!("\n\x1b[90mUsage: /resume <session-id>\x1b[0m");
        eprintln!("\x1b[90mOr start with: abstract --resume <session-id>\x1b[0m");
    } else {
        eprintln!("\x1b[90mTo resume a session, restart with: abstract --resume {args}\x1b[0m");
    }
    Ok(())
}