Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorg #329

Merged
merged 2 commits into from
Feb 24, 2025
Merged

Reorg #329

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
File renamed without changes.
9 changes: 6 additions & 3 deletions src/cli.rs → src/cli/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
mod args;
mod completions;

pub use args::*;

use {
crate::*,
anyhow::anyhow,
Expand Down Expand Up @@ -25,8 +30,6 @@ use termimad::crossterm::event::{
EnableMouseCapture,
};

pub mod completions;

/// The Write type used by all GUI writing functions
pub type W = std::io::BufWriter<std::io::Stdout>;

Expand Down Expand Up @@ -105,7 +108,7 @@ pub fn run() -> anyhow::Result<()> {
w.queue(EnableMouseCapture)?;
w.flush()?;
}
let result = app::run(&mut w, settings, &args, context, headless);
let result = tui::app::run(&mut w, settings, &args, context, headless);
if !headless {
#[cfg(windows)]
w.queue(DisableMouseCapture)?;
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/conf/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod action;
mod args;
mod auto_refresh;
mod cargo_wrapped_config;
mod config;
mod defaults;
Expand All @@ -9,7 +9,7 @@ mod settings;

pub use {
action::*,
args::*,
auto_refresh::*,
cargo_wrapped_config::*,
config::*,
defaults::*,
Expand Down
2 changes: 1 addition & 1 deletion src/help/help_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl HelpLine {
if let Some(s) = &self.clear_search {
parts.push(s);
}
if state.is_search_input_focused() {
if state.search.focused() {
if let Some(s) = &self.validate_search {
parts.push(s);
}
Expand Down
15 changes: 2 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,53 +1,42 @@
mod analysis;
mod app;
mod auto_refresh;
pub mod burp;
mod cli;
mod conf;
mod context;
mod context_nature;
mod drawing;
mod exec;
mod export;
mod help;
mod ignorer;
mod internal;
mod jobs;
mod messages;
mod mission;
mod result;
mod scroll;
mod search;
mod sound;
mod state;
mod tty;
mod tui;
mod watcher;
mod wrap;

pub use {
analysis::*,
auto_refresh::*,
cli::*,
conf::*,
context::*,
context_nature::*,
drawing::*,
exec::*,
export::*,
help::*,
ignorer::*,
internal::*,
jobs::*,
messages::*,
mission::*,
result::*,
scroll::*,
search::*,
sound::*,
state::*,
tty::*,
tui::*,
watcher::*,
wrap::*,
};

#[macro_use]
Expand Down
File renamed without changes.
Loading