Skip to content

Commit

Permalink
address PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: stevelr <[email protected]>
  • Loading branch information
stevelr committed Aug 31, 2021
1 parent 111619d commit ea2253e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/generate/emoji.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ pub(crate) static WARN: Emoji<'_, '_> = Emoji("⚠️ ", "");
pub(crate) static WRENCH: Emoji<'_, '_> = Emoji("🔧 ", "");
pub(crate) static SHRUG: Emoji<'_, '_> = Emoji("🤷 ", "");
pub(crate) static INFO: Emoji<'_, '_> = Emoji("💡 ", "");
//pub(crate) static DIAMOND: Emoji<'_, '_> = Emoji("🔸 ", "");
2 changes: 1 addition & 1 deletion src/generate/favorites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! name = "template name - required"
//! description = "something about this template - required"
//! path = "optional path to folder of template files on disk"
//! git = "optional github url. Either github or path must be provided"
//! git = "optional github repository url for templates"
//! subfolder = "optional, subdirectory. Only applicable with git"
//! branch = "optional git branch. Only applicable with git"
//!
Expand Down
13 changes: 0 additions & 13 deletions src/generate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
// license: MIT/Apache-2.0
//

//use cargo::core::GitReference;
use anyhow::{anyhow, Context, Result};
use config::{Config, CONFIG_FILE_NAME};
use console::style;
Expand Down Expand Up @@ -596,19 +595,7 @@ impl ProjectName {
}
}

//pub(crate) fn raw(&self) -> String {
// self.user_input.to_owned()
//}

pub(crate) fn kebab_case(&self) -> String {
self.user_input.to_kebab_case()
}

//pub(crate) fn snake_case(&self) -> String {
// self.user_input.to_snake_case()
//}

//pub(crate) fn is_crate_name(&self) -> bool {
// self.user_input == self.kebab_case()
//}
}
1 change: 1 addition & 0 deletions src/generate/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ fn create_matcher<P: AsRef<Path>>(project_dir: P, patterns: &[String]) -> Result
}
Ok(builder.build()?)
}

pub(crate) fn spinner() -> ProgressStyle {
ProgressStyle::default_spinner()
.tick_chars("⠁⠂⠄⡀⢀⠠⠐⠈ ")
Expand Down

0 comments on commit ea2253e

Please sign in to comment.