Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cli/src/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pub enum Status {
Success,
}

// signle print function that passable status 'error' or 'warning' or nothing
pub(crate) fn pretty_print(message: impl Display, status: Status) {
match status {
Status::Error => println!("\x1b[31m[ERROR]\x1b[0m {}", message),
Expand Down
2 changes: 0 additions & 2 deletions cli/src/subcommand/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ struct InitPromptResult {
}

fn init_prompt() -> Result<InitPromptResult, Error> {
// TODO: Add support for finding root of the project
let existing_configs = ConfigBuilder::find_default_configs();
let is_config_file_exists = !existing_configs.is_empty();
let is_ignore_file_exists = std::path::Path::new(DEFAULT_IGNORE_FILE_PATH).exists();
Expand Down Expand Up @@ -120,7 +119,6 @@ pub fn execute_init(_command: InitCommand) -> Result<(), Error> {
}

if ignore {
// Include all possible config files in ignore file
let ignore_content = DEFAULT_CONFIG_FILE_PATHS
.iter()
.map(|path| path.to_string())
Expand Down