feat(github): Add Github support in Build command
This commit is contained in:
parent
386308f649
commit
6a15c56a90
6 changed files with 366 additions and 187 deletions
|
|
@ -1,4 +1,3 @@
|
|||
use anyhow::Result;
|
||||
use clap::{Parser, Subcommand};
|
||||
use clap_verbosity_flag::{InfoLevel, Verbosity};
|
||||
use env_logger::WriteStyle;
|
||||
|
|
@ -35,7 +34,7 @@ enum CommandArgs {
|
|||
Build(build::BuildCommand),
|
||||
}
|
||||
|
||||
fn main() -> Result<()> {
|
||||
fn main() {
|
||||
let args = UblueArgs::parse();
|
||||
|
||||
env_logger::builder()
|
||||
|
|
@ -46,16 +45,15 @@ fn main() -> Result<()> {
|
|||
trace!("{args:#?}");
|
||||
|
||||
match args.command {
|
||||
CommandArgs::Template(command) => command.run()?,
|
||||
CommandArgs::Template(command) => command.run(),
|
||||
|
||||
#[cfg(feature = "init")]
|
||||
CommandArgs::Init(command) => command.run()?,
|
||||
CommandArgs::Init(command) => command.run(),
|
||||
|
||||
#[cfg(feature = "init")]
|
||||
CommandArgs::New(command) => command.run()?,
|
||||
CommandArgs::New(command) => command.run(),
|
||||
|
||||
#[cfg(feature = "build")]
|
||||
CommandArgs::Build(command) => command.run()?,
|
||||
CommandArgs::Build(command) => command.run(),
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue