mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
refactor: Move action to own mod 📦
This commit is contained in:
parent
0c749b0f5c
commit
f83a21dd95
7 changed files with 39 additions and 35 deletions
29
src/main.rs
29
src/main.rs
|
@ -2,6 +2,20 @@
|
|||
#![allow(unused_imports)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
mod action;
|
||||
mod app;
|
||||
mod calendar;
|
||||
mod cli;
|
||||
mod completion;
|
||||
mod config;
|
||||
mod event;
|
||||
mod help;
|
||||
mod history;
|
||||
mod keyconfig;
|
||||
mod pane;
|
||||
mod table;
|
||||
mod task_report;
|
||||
|
||||
use std::env;
|
||||
use std::error::Error;
|
||||
use std::io::{self, Write};
|
||||
|
@ -23,23 +37,10 @@ use tui::{backend::CrosstermBackend, Terminal};
|
|||
|
||||
use app::{Mode, TaskwarriorTui};
|
||||
|
||||
use crate::app::Action;
|
||||
use crate::action::Action;
|
||||
use crate::event::{Event, EventConfig, Events, Key};
|
||||
use crate::keyconfig::KeyConfig;
|
||||
|
||||
mod app;
|
||||
mod calendar;
|
||||
mod cli;
|
||||
mod completion;
|
||||
mod config;
|
||||
mod event;
|
||||
mod help;
|
||||
mod history;
|
||||
mod keyconfig;
|
||||
mod pane;
|
||||
mod table;
|
||||
mod task_report;
|
||||
|
||||
/// # Panics
|
||||
/// Will panic if could not obtain terminal
|
||||
pub fn setup_terminal() -> Terminal<CrosstermBackend<io::Stdout>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue