jjj 0.1.0

A simple TUI for jj.
//! Handles interactions with underlying JJ repositories.

use std::process::Command;

use anyhow::Result;
use bevy::prelude::*;

pub mod log;
pub mod revisions;

pub fn plugin(app: &mut App) {
    app.add_plugins(log::plugin);
}

pub(super) fn execute_jj_command(args: Vec<&str>) -> Result<String> {
    let mut _args = vec!["--color", "never"];
    _args.append(&mut args.clone());
    Ok(String::from_utf8(
        Command::new("jj").args(_args).output()?.stdout,
    )?)
}