Adds cli base
This commit is contained in:
parent
cf71d6b8cb
commit
094d4b78e0
|
|
@ -5,11 +5,12 @@
|
|||
use clap::{Args, Parser, Subcommand};
|
||||
use config::{
|
||||
analysis::AnalysisConfig,
|
||||
fast_tables::FastTableConfig,
|
||||
formatter::FormatterConfig,
|
||||
graph::GraphConfig,
|
||||
make::{
|
||||
MakeTargets, VerboseLevel, HELP_BLOCK_SELECTION, HELP_BUILD_TARGET_LIST,
|
||||
HELP_VERBOSITY_LEVEL,
|
||||
HELP_BLOCK_SELECTION, HELP_BUILD_TARGET_LIST, HELP_VERBOSITY_LEVEL, MakeTargets,
|
||||
VerboseLevel,
|
||||
},
|
||||
statsolver::StatConfig,
|
||||
tablegen::{Craft, TableArgs},
|
||||
|
|
@ -48,6 +49,8 @@ pub enum Commands {
|
|||
Format(FormatterConfig),
|
||||
/// Generate analysis data
|
||||
Analysis(AnalysisConfig),
|
||||
/// Better Generation
|
||||
BetterGen(FastTableConfig),
|
||||
}
|
||||
|
||||
#[derive(Debug, Args)]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
#![warn(missing_docs)]
|
||||
#![warn(clippy::missing_docs_in_private_items)]
|
||||
|
||||
use fast_class::make_better_gen;
|
||||
// Workspace
|
||||
use formatter::format_file;
|
||||
use graphs::make_graphs;
|
||||
|
|
@ -35,6 +36,7 @@ fn main() -> Result<()> {
|
|||
Commands::Graphs(args) => make_graphs(&args, &config),
|
||||
Commands::Format(args) => format_file(&args, &config),
|
||||
Commands::Analysis(args) => Ok(launch_analysis(&args, &config)?), // Not using anyhow but a custom error
|
||||
Commands::BetterGen(args) => make_better_gen(&args, &config),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue