Skip to content

Commit

Permalink
chore: update clap version and also, remove unused file.
Browse files Browse the repository at this point in the history
  • Loading branch information
enuesaa committed Jul 27, 2024
1 parent c3c535c commit fddc702
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 41 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "MIT"

[dependencies]
clap = { version = "4.4.8", features = ["derive", "cargo"] }
clap = { version = "4.5.10", features = ["derive", "cargo"] }

[lib]
name = "jsonwith"
Expand Down
6 changes: 3 additions & 3 deletions src/bin/jsonwith.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use clap::{Args, Parser, Subcommand, crate_version, CommandFactory};
use clap::{crate_version, Args, CommandFactory, Parser, Subcommand};
use std::io::IsTerminal;

use jsonwith::{json2yaml, jsonformat, yaml2json};
Expand All @@ -7,7 +7,7 @@ use jsonwith::{json2yaml, jsonformat, yaml2json};
#[command(
name = "jsonwith",
about = "Toy JSON Parser & Formatter",
disable_help_subcommand = true,
disable_help_subcommand = true
)]
pub struct Cli {
#[command(subcommand)]
Expand Down Expand Up @@ -61,7 +61,7 @@ fn main() {
}

match args.action {
Some(Actions::Format(args)) => {
Some(Actions::Format(args)) => {
let json = args.json.unwrap_or_else(|| read_stdin());
if json.len() == 0 {
println!("Error: Missing required argument.");
Expand Down
37 changes: 0 additions & 37 deletions src/yaml/parse/context.rs

This file was deleted.

0 comments on commit fddc702

Please sign in to comment.