Rename gui submodule to tui
This commit is contained in:
parent
b32fc8a89c
commit
8fca0f2f6a
@ -28,7 +28,8 @@ optional = true
|
||||
version = "0.27"
|
||||
optional = true
|
||||
|
||||
|
||||
[features]
|
||||
default = ["watch", "gui"]
|
||||
default = ["watch", "tui"]
|
||||
watch = ["dep:notify"]
|
||||
gui = ["dep:ratatui", "dep:crossterm"]
|
||||
tui = ["dep:ratatui", "dep:crossterm"]
|
||||
|
@ -1,6 +1,6 @@
|
||||
mod edit;
|
||||
mod gui;
|
||||
mod show;
|
||||
mod tui;
|
||||
mod watcher;
|
||||
|
||||
|
||||
@ -24,8 +24,8 @@ pub(crate) enum CommandArgs {
|
||||
/// Edit verious aspect of save files
|
||||
Edit(edit::Args),
|
||||
|
||||
#[cfg(feature = "gui")]
|
||||
Gui(gui::Args),
|
||||
#[cfg(feature = "tui")]
|
||||
Tui(tui::Args),
|
||||
}
|
||||
|
||||
|
||||
@ -35,9 +35,11 @@ fn main() -> Result<()> {
|
||||
|
||||
match &args.command {
|
||||
CommandArgs::Show(sub_args) => show::execute(&args, sub_args)?,
|
||||
|
||||
CommandArgs::Edit(sub_args) => edit::execute(&args, sub_args)?,
|
||||
#[cfg(feature = "gui")]
|
||||
CommandArgs::Gui(sub_args) => gui::execute(&args, sub_args)?,
|
||||
|
||||
#[cfg(feature = "tui")]
|
||||
CommandArgs::Tui(sub_args) => tui::execute(&args, sub_args)?,
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg(feature = "gui")]
|
||||
#![cfg(feature = "tui")]
|
||||
|
||||
use std::fs::File;
|
||||
use std::io::{self, Stdout};
|
Loading…
Reference in New Issue
Block a user