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