mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 14:30:11 +00:00
a7e6ea0246
* Implement about page Add title Add hints * Add descriptions for commands * Refactor about to description
27 lines
456 B
Rust
27 lines
456 B
Rust
mod inner;
|
|
|
|
use ego_tree::Tree;
|
|
use std::path::PathBuf;
|
|
|
|
pub use inner::get_tabs;
|
|
|
|
#[derive(Clone, Hash, Eq, PartialEq)]
|
|
pub enum Command {
|
|
Raw(String),
|
|
LocalFile(PathBuf),
|
|
None, // Directory
|
|
}
|
|
|
|
#[derive(Clone, Hash, Eq, PartialEq)]
|
|
pub struct Tab {
|
|
pub name: String,
|
|
pub tree: Tree<ListNode>,
|
|
}
|
|
|
|
#[derive(Clone, Hash, Eq, PartialEq)]
|
|
pub struct ListNode {
|
|
pub name: String,
|
|
pub description: String,
|
|
pub command: Command,
|
|
}
|