Skip to content

Commit

Permalink
refactor(rename): rename mod: fzf_make to tui, fzf_make_main to…
Browse files Browse the repository at this point in the history
… `fzf_make` (#314)
  • Loading branch information
kyu08 authored Oct 5, 2024
1 parent a90e095 commit 6bc1ff2
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/controller/controller_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use colored::Colorize;
use std::sync::Arc;
use std::{collections::HashMap, env};

use crate::usecase::fzf_make_main::FzfMake;
use crate::usecase::{fzf_make_main, help, history, invalid_arg, repeat, usecase_main, version};
use crate::usecase::fzf_make::FzfMake;
use crate::usecase::{fzf_make, help, history, invalid_arg, repeat, usecase_main, version};

pub fn run() {
let command_line_args = env::args().collect();
Expand Down Expand Up @@ -40,7 +40,7 @@ fn usecases() -> HashMap<&'static str, Arc<dyn usecase_main::Usecase>> {
Arc::new(help::Help::new()),
Arc::new(invalid_arg::InvalidArg::new()),
Arc::new(version::Version::new()),
Arc::new(fzf_make_main::FzfMake::new()),
Arc::new(fzf_make::FzfMake::new()),
Arc::new(repeat::Repeat::new()),
Arc::new(history::History::new()),
];
Expand Down
4 changes: 2 additions & 2 deletions src/usecase/fzf_make_main.rs → src/usecase/fzf_make.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::fzf_make::config;
use crate::usecase::fzf_make::app;
use super::tui::config;
use crate::usecase::tui::app;
use crate::usecase::usecase_main::Usecase;
use anyhow::Result;

Expand Down
2 changes: 1 addition & 1 deletion src/usecase/history.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::fzf_make::{app, config};
use super::tui::{app, config};
use crate::usecase::usecase_main::Usecase;
use anyhow::Result;

Expand Down
2 changes: 1 addition & 1 deletion src/usecase/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
mod execute_make_command;
pub(super) mod fzf_make;
pub(super) mod fzf_make_main;
pub(super) mod help;
pub(super) mod history;
pub(super) mod invalid_arg;
pub(super) mod repeat;
mod tui;
pub(super) mod usecase_main;
pub(super) mod version;
2 changes: 1 addition & 1 deletion src/usecase/repeat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use anyhow::{anyhow, Result};

use super::{
execute_make_command::execute_make_target,
fzf_make::{
tui::{
app::{AppState, Model},
config,
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6bc1ff2

Please sign in to comment.