Initial upload: gitignore-gen Rust CLI tool with 100+ templates
This commit is contained in:
20
app/gitignore-gen/src/main.rs
Normal file
20
app/gitignore-gen/src/main.rs
Normal file
@@ -0,0 +1,20 @@
|
||||
mod cli;
|
||||
mod core;
|
||||
mod templates;
|
||||
mod tui;
|
||||
|
||||
use anyhow::Result;
|
||||
use clap::Parser;
|
||||
|
||||
#[derive(Parser, Version)]
|
||||
#[command(name = "gitignore-gen")]
|
||||
#[command(author, version, about, long_about = None)]
|
||||
struct Args {
|
||||
#[command(subcommand)]
|
||||
command: cli::Commands,
|
||||
}
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let args = Args::parse();
|
||||
cli::run(args.command)
|
||||
}
|
||||
Reference in New Issue
Block a user