teamy-mft 0.7.0

TeamDman's Master File Table CLI and library for NTFS.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use arbitrary::Arbitrary;
use facet::Facet;

/// Launch the Windows tray UI for daemon log replay and live follow.
#[derive(Facet, Arbitrary, PartialEq, Debug, Default)]
pub struct TrayArgs;

impl TrayArgs {
    /// # Errors
    ///
    /// Returns an error if the tray UI cannot be initialized.
    pub fn invoke(self) -> eyre::Result<()> {
        let context = crate::tray::TrayContext {
            inherited_console_available: crate::windows_utils::console::is_inheriting_console(),
        };
        crate::tray::run_tray(context)
    }
}