forked from StrafesNET/strafe-ai
format
This commit is contained in:
24
src/main.rs
24
src/main.rs
@@ -1,30 +1,30 @@
|
||||
use clap::{Parser,Subcommand};
|
||||
use clap::{Parser, Subcommand};
|
||||
|
||||
mod net;
|
||||
mod inputs;
|
||||
mod inference;
|
||||
mod inputs;
|
||||
mod net;
|
||||
mod training;
|
||||
|
||||
#[derive(Parser)]
|
||||
#[command(author,version,about,long_about=None)]
|
||||
#[command(propagate_version=true)]
|
||||
struct Cli{
|
||||
#[command(propagate_version = true)]
|
||||
struct Cli {
|
||||
#[command(subcommand)]
|
||||
command:Commands,
|
||||
command: Commands,
|
||||
}
|
||||
|
||||
#[derive(Subcommand)]
|
||||
enum Commands{
|
||||
enum Commands {
|
||||
#[command(flatten)]
|
||||
Roblox(inference::Commands),
|
||||
#[command(flatten)]
|
||||
Source(training::Commands),
|
||||
}
|
||||
|
||||
fn main(){
|
||||
let cli=Cli::parse();
|
||||
match cli.command{
|
||||
Commands::Roblox(commands)=>commands.run(),
|
||||
Commands::Source(commands)=>commands.run(),
|
||||
fn main() {
|
||||
let cli = Cli::parse();
|
||||
match cli.command {
|
||||
Commands::Roblox(commands) => commands.run(),
|
||||
Commands::Source(commands) => commands.run(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user