Skip to content

Commit

Permalink
chore: create cargo-ngyn crate (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
elcharitas authored Aug 24, 2024
1 parent 13f665e commit e6a1ccb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "ngyn-cli"
name = "cargo-ngyn"
version = "0.0.1"
edition = "2021"
description = "Modular backend framework for web applications"
Expand Down
8 changes: 4 additions & 4 deletions crates/cli/src/bin/cmd/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ pub fn command() -> Command<'static> {
)
}

pub fn run(matches: &ArgMatches) -> Result<ngyn_cli::CmdExit> {
pub fn run(matches: &ArgMatches) -> Result<cargo_ngyn::CmdExit> {
info!("default cmd {:?}", matches.get_one::<String>("reporter"));
println!("going to run {}", ngyn_cli::CMD);
ngyn_cli::run();
Ok(ngyn_cli::CmdExit {
println!("going to run {}", cargo_ngyn::CMD);
cargo_ngyn::run();
Ok(cargo_ngyn::CmdExit {
code: exitcode::OK,
message: None,
})
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/bin/cmd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ pub mod validate;
use std::process::exit;

use anyhow::Result;
use cargo_ngyn::CmdExit;
use clap::ArgMatches;
use console::{style, Style};
use ngyn_cli::CmdExit;
use tracing::debug;
use tracing::metadata::LevelFilter;
use tracing_subscriber::prelude::__tracing_subscriber_SubscriberExt;
Expand Down
4 changes: 2 additions & 2 deletions crates/cli/src/bin/cmd/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pub fn command() -> Command<'static> {
)
}

pub fn run(_matches: &ArgMatches, _subcommand_matches: &ArgMatches) -> Result<ngyn_cli::CmdExit> {
Ok(ngyn_cli::CmdExit {
pub fn run(_matches: &ArgMatches, _subcommand_matches: &ArgMatches) -> Result<cargo_ngyn::CmdExit> {
Ok(cargo_ngyn::CmdExit {
code: exitcode::OK,
message: None,
})
Expand Down

0 comments on commit e6a1ccb

Please sign in to comment.