Adds cli base

This commit is contained in:
Dandaedre 2026-01-22 16:42:51 +01:00
parent 4cf73ff243
commit 425645df76
5 changed files with 16 additions and 3 deletions

View File

@ -4,6 +4,7 @@
use clap::{Args, Parser, Subcommand};
use config::{
fast_tables::FastTableConfig,
graph::GraphConfig,
make::{
HELP_BLOCK_SELECTION, HELP_BUILD_TARGET_LIST, HELP_VERBOSITY_LEVEL, MakeTargets,
@ -42,6 +43,8 @@ pub enum Commands {
Make(MakeConfig),
/// Make all graphs
Graphs(GraphConfig),
/// Better Generation
BetterGen(FastTableConfig),
}
#[derive(Debug, Args)]

View File

@ -4,4 +4,7 @@ version = "0.1.0"
edition = "2024"
[dependencies]
config = {path = "../config"}
cli_parser = {path = "../cli_parser"}
anyhow = "1.0.95"
facet = "0.42.0"

View File

@ -23,6 +23,9 @@
//! The module is free of external dependencies except for `facet`, which provides
//! the procedural macro used for deriving serialisation support.
use anyhow::Result;
use cli_parser::Config;
use config::fast_tables::FastTableConfig;
use facet::Facet;
/// Represents a playable class in the game.
@ -124,9 +127,10 @@ pub trait Graphable {
fn to_graph(&self) -> String;
}
/// r[bulk.export]
pub fn add(left: u64, right: u64) -> u64 {
left + right
pub fn make_better_gen(args: &FastTableConfig, config: &Config) -> Result<()> {
let _ = args;
let _ = config;
todo!()
}
// Subcommands:
// dashboard [classes, alchemy, cooking, forge] --filter name=Archer

View File

@ -11,6 +11,7 @@ cli_parser = {path = "../cli_parser"}
# config = {path = "../config"}
stats = {path = "../stats"}
make = {path = "../make"}
fast_class = {path = "../fast_class"}
anyhow = "1.0.95"
clap = { version = "4.5.28", features = ["derive"] }

View File

@ -5,6 +5,7 @@
#![warn(missing_docs)]
#![warn(clippy::missing_docs_in_private_items)]
use fast_class::make_better_gen;
// Workspace
use graphs::make_graphs;
use make::make_pdf;
@ -31,6 +32,7 @@ fn main() -> Result<()> {
Commands::Stats(args) => stat_solver(&args, &config),
Commands::Make(args) => make_pdf(&args, &config),
Commands::Graphs(args) => make_graphs(&args, &config),
Commands::BetterGen(args) => make_better_gen(&args, &config),
}
}