terminal_cli 0.2.0

A standalone library with no-std support for command line terminal interfaces. With autocomplete support, helpers for commands and properties and a prompt implementation.
Documentation
use prelude::v1::*;
use terminal::*;

/// Context for the execution of the command
pub struct CommandContext<'b> {
	pub args: Cow<'b, str>,
	pub terminal: &'b mut CharacterTerminalWriter,
	pub current_path: &'b str
}

impl<'b> CommandContext<'b> {
	#[inline]
	pub fn get_args(&self) -> &str {
		&self.args
	}

	#[inline]
	pub fn get_terminal(&mut self) -> &mut CharacterTerminalWriter {
		self.terminal
	}

	#[inline]
	pub fn get_current_path(&self) -> &str {
		&self.current_path
	}
}