Skip to content

Commit

Permalink
chore: updating depencencies and inquire to 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sousandrei committed Nov 29, 2021
1 parent ee06172 commit 33fe14c
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 46 deletions.
103 changes: 62 additions & 41 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ license-file = "LICENSE"
name = "cc-cli"
readme = "README.md"
repository = "https://github.com/sousandrei/cc-cli"
version = "0.1.1"
version = "0.1.2"

[dependencies]
anyhow = "1.0.43"
argh = "0.1.5"
inquire = "0.0.6"
anyhow = "1.0.50"
argh = "0.1.6"
inquire = "0.2.1"
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub mod commit;
pub mod hook;

pub fn prompt() -> Result<String> {
let commit_type = Select::new("What is the commit type?", &ITEMS).prompt()?;
let commit_type = Select::new("What is the commit type?", ITEMS.to_vec()).prompt()?;

let mut scope = Text::new("What is the commit scope?")
.with_validator(max_length!(15, "Maximum of 15 characters"))
Expand Down

0 comments on commit 33fe14c

Please sign in to comment.