Skip to content

Commit

Permalink
chore: update clap and config
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Feb 21, 2022
1 parent 22120dc commit 421ef1f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ git2 = { version = "^0", default-features = false, features = [] }
anyhow = "^1"
colored = "^2"
chrono = { version = "0.4.19", features = ["serde"] }
config = { version = "^0", default-features = false, features = ["toml"] }
config = { version = "0.11.0", default-features = false, features = ["toml"] }
edit = "^0"
itertools = "^0"
serde = { version = "^1", features = ["derive"] }
Expand All @@ -35,7 +35,7 @@ shell-words = "^1"
which = "^4"
lazy_static = "^1"
toml = "^0"
clap = { version = "3.0", optional = true, features = ["derive"] }
clap = { version = "3.1", optional = true, features = ["derive"] }
clap_complete = { version = "3.0", optional = true }
conventional_commit_parser = "0.9.4"
pest = "2.1.3"
Expand Down
4 changes: 2 additions & 2 deletions src/bin/coco.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mod cog_commit;
use cocogitto::CocoGitto;

use anyhow::Result;
use clap::{AppSettings, IntoApp, Parser};
use clap::{AppSettings, CommandFactory, Parser};
use clap_complete::Shell;

/// A command line tool to create conventional commits
Expand Down Expand Up @@ -48,7 +48,7 @@ fn main() -> Result<()> {
eprintln!("Warning: `coco` is deprecated, use `cog commit` instead");

if let Some(shell) = cli.completion {
clap_complete::generate(shell, &mut Cli::into_app(), "coco", &mut std::io::stdout());
clap_complete::generate(shell, &mut Cli::command(), "coco", &mut std::io::stdout());
} else {
let cocogitto = CocoGitto::get()?;

Expand Down
4 changes: 2 additions & 2 deletions src/bin/cog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use cocogitto::log::output::Output;
use cocogitto::{CocoGitto, SETTINGS};

use anyhow::{Context, Result};
use clap::{AppSettings, ArgGroup, Args, IntoApp, Parser};
use clap::{AppSettings, ArgGroup, Args, CommandFactory, Parser};
use clap_complete::Shell;

fn hook_profiles() -> Vec<&'static str> {
Expand Down Expand Up @@ -328,7 +328,7 @@ fn main() -> Result<()> {
}
}
Cli::GenerateCompletions { shell } => {
clap_complete::generate(shell, &mut Cli::into_app(), "cog", &mut std::io::stdout());
clap_complete::generate(shell, &mut Cli::command(), "cog", &mut std::io::stdout());
}
Cli::Commit(CommitArgs {
typ,
Expand Down

0 comments on commit 421ef1f

Please sign in to comment.