nu-cli 0.112.1

CLI-related functionality for Nushell
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Each const is named after a HistoryItem field, and the value is the field name to be displayed to
// the user (or accept during import).
pub const COMMAND_LINE: &str = "command";

#[cfg_attr(not(feature = "sqlite"), allow(dead_code))]
mod sqlite_only_fields {
    pub const START_TIMESTAMP: &str = "start_timestamp";
    pub const HOSTNAME: &str = "hostname";
    pub const CWD: &str = "cwd";
    pub const EXIT_STATUS: &str = "exit_status";
    pub const DURATION: &str = "duration";
    #[allow(dead_code)]
    // used in history import but currently reedline doesn't allow setting it
    pub const SESSION_ID: &str = "session_id";
}

#[cfg_attr(not(feature = "sqlite"), allow(unused))]
pub use sqlite_only_fields::*;