#![deny(unsafe_code)]
#![allow(unused)]
use clientele::{
crates::clap::{Parser, Subcommand},
StandardOptions, SysexitsError,
};
#[derive(Debug, Parser)]
#[command(name = "Skeleton")]
#[command(arg_required_else_help = true)]
struct Options {
#[clap(flatten)]
flags: StandardOptions,
#[command(subcommand)]
command: Command,
}
#[derive(Debug, Subcommand)]
enum Command {
Config {},
}
pub fn main() -> Result<(), SysexitsError> {
clientele::dotenv().ok();
let args = clientele::args_os()?;
let options = Options::parse_from(args);
if options.flags.version {
println!("skeleton {}", env!("CARGO_PKG_VERSION"));
return Ok(());
}
if options.flags.license {
println!("This is free and unencumbered software released into the public domain.");
return Ok(());
}
match options.command {
Command::Config {} => {
println!("This is the implementation of the `config` subcommand.");
Ok(())
}
}
}