magi-linear-axi 0.2.3

Agent-native Linear GraphQL CLI with TOON output
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{
    cli::{Cli, DocumentCommand},
    commands::resource::{self, Kind},
};
pub fn execute(c: &Cli, x: DocumentCommand) -> Result<(), crate::error::AppError> {
    let (o, a) = match x {
        DocumentCommand::List(a) => ("list", a),
        DocumentCommand::View(a) => ("view", a),
        DocumentCommand::Create(a) => ("create", a),
        DocumentCommand::Update(a) => ("update", a),
        DocumentCommand::Delete(a) => ("delete", a),
    };
    resource::run(c, Kind::Document, o, a)
}