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
15
use crate::{
    cli::{Cli, ProjectCommand},
    commands::resource::{self, Kind},
};
pub fn execute(c: &Cli, x: ProjectCommand) -> Result<(), crate::error::AppError> {
    match x {
        ProjectCommand::View(a) => {
            resource::run_with_fields(c, Kind::Project, "view", a.resource, a.fields)
        }
        ProjectCommand::List(a) => resource::run(c, Kind::Project, "list", a),
        ProjectCommand::Create(a) => resource::run(c, Kind::Project, "create", a),
        ProjectCommand::Update(a) => resource::run(c, Kind::Project, "update", a),
        ProjectCommand::Delete(a) => resource::run(c, Kind::Project, "delete", a),
    }
}