workflow-terminal 0.19.0

Terminal abstraction layer over Xterm.js and termion crates for creating terminal applications that function uniformly in native (console) and in browser (WASM32) environments.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//!
//! [`Result`] encapsulating internal terminal [`Error`](super::error::Error)
//! and [`CliResult`] encapsulating a String error (for output in the terminal)
//!

/// Result type for internal terminal operations, carrying the crate
/// [`Error`](crate::error::Error) on failure.
pub type Result<T> = std::result::Result<T, crate::error::Error>;
/// Result type for CLI command handlers, carrying a `String` error message
/// to be displayed in the terminal on failure.
pub type CliResult<T> = std::result::Result<T, String>;