mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-06 05:33:38 -10:00
One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done (goal check, tasks, judge, seen, gates, next); the brief's contract is goal: (one goal or a list, a workflow inline), and its plan is plan:. raea make is making a finished asset: character, clothes, motion, solid, wear, splat, physics, bake, sounds, component, the kit pipeline and shots. Instruments (check, judge, ask, world, scene faults, light check) stay top-level. With it: the montage pack (MK48-MK51), JavaScriptCore fixes raea goal needs (CommonJS named exports, reserved words too, dynamic import of file URLs, process.exit from a promise, stdin for -), raea-cli-goal and raea-cli-refused split out of raea-cli, and skills at raea-skills 105aede.
52 lines
1.8 KiB
Rust
52 lines
1.8 KiB
Rust
//! raea's command line, which the `raea` binary (main.rs) and a plugin build (bin/raea-bevy-sdk.rs) both run: the
|
|
//! dispatch and the help (cli.rs, usage.rs), the guides and a project's context (guide.rs), the small verbs (verbs.rs)
|
|
//! and the verbs of raea's app crates.
|
|
use std::collections::HashMap;
|
|
use std::path::{Path, PathBuf};
|
|
|
|
use raea_runtime_react::scene::{self as motion, *};
|
|
use raea_runtime_export::*;
|
|
use raea_app_tools as tools;
|
|
use serde_json::json;
|
|
use raea_neural as neural;
|
|
use raea_light as light;
|
|
|
|
mod cli;
|
|
mod guide;
|
|
use raea_cli_refused as refused;
|
|
mod skill;
|
|
mod spec;
|
|
mod tests;
|
|
mod usage;
|
|
mod verbs;
|
|
pub use cli::cli;
|
|
use guide::*;
|
|
use usage::*;
|
|
use verbs::*;
|
|
|
|
/// The `raea` process after its allocator (main.rs, and a build that installs a signer first): its exit code.
|
|
pub fn main() -> i32 {
|
|
raea_core_alloc::init();
|
|
raea_core_alloc::init_sites();
|
|
raea_runtime_react::startup_mark("main");
|
|
let args = match usage::regroup(std::env::args().skip(1).collect()) {
|
|
Ok(a) => a,
|
|
Err(why) => {
|
|
eprintln!("raea: {why}");
|
|
return 2;
|
|
}
|
|
};
|
|
match args.first().map(String::as_str) {
|
|
// `check VIDEO.mp4 …`: the floor's measurable lines on an export, ranked P0-P3
|
|
// (with --taste or --quick, through the engine, which evaluates the taste.ts files or renders stills: `check` here)
|
|
Some("check") if !args.iter().any(|a| a == "--taste" || a == "--quick") && raea_app_direction::check::of_video(&args[1..]) => raea_app_check::cli_with(&args[1..], Vec::new()),
|
|
// `ci …`: the gates' sound measurements and lightspeed's process measurements
|
|
Some("ci") => raea_app_ci::cli(&args[1..]),
|
|
_ => {
|
|
raea_runtime_react::CLI.get_or_init(|| cli);
|
|
raea_runtime_react::start();
|
|
cli(&args)
|
|
}
|
|
}
|
|
}
|