rmux-server 0.6.0

Tokio daemon and request dispatcher for the RMUX terminal multiplexer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use rmux_core::command_parser::CommandParser;
use rmux_proto::OptionName;

use crate::pane_terminals::HandlerState;

pub(in crate::handler) fn command_parser_from_state(state: &HandlerState) -> CommandParser {
    CommandParser::new()
        .with_environment_store(&state.environment)
        .with_command_aliases(
            state
                .options
                .resolve_array_values(None, OptionName::CommandAlias),
        )
}