Skip to content

Commit

Permalink
Refactor finder packages (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro authored Apr 5, 2021
1 parent 43f0173 commit fe07f65
Show file tree
Hide file tree
Showing 10 changed files with 347 additions and 337 deletions.
2 changes: 1 addition & 1 deletion src/cmds/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use crate::display;
use crate::env_vars;
use crate::fetcher::Fetcher;
use crate::filesystem;
use crate::finder::structures::{Opts as FinderOpts, SuggestionType};
use crate::finder::Finder;
use crate::shell::{BashSpawnError, IS_FISH};
use crate::structures::cheat::{Suggestion, VariableMap};
use crate::structures::config::Action;
use crate::structures::config::Config;
use crate::structures::config::Source;
use crate::structures::finder::{Opts as FinderOpts, SuggestionType};
use crate::tldr;
use crate::welcome;
use anyhow::Context;
Expand Down
2 changes: 1 addition & 1 deletion src/cmds/repo.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::filesystem;
use crate::finder::structures::{Opts as FinderOpts, SuggestionType};
use crate::finder::{Finder, FinderChoice};
use crate::git;
use crate::structures::finder::{Opts as FinderOpts, SuggestionType};
use anyhow::Context;
use anyhow::Error;
use std::fs;
Expand Down
2 changes: 1 addition & 1 deletion src/fetcher/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub fn read_all(
mod tests {
use super::*;
use crate::display;
use crate::structures::finder::{Opts as FinderOpts, SuggestionType};
use crate::finder::structures::{Opts as FinderOpts, SuggestionType};
use std::process::{Command, Stdio};

#[test]
Expand Down
331 changes: 0 additions & 331 deletions src/finder.rs

This file was deleted.

Loading

0 comments on commit fe07f65

Please sign in to comment.