Skip to main content

cmd_cat_impl

Function cmd_cat_impl 

Source
pub(super) fn cmd_cat_impl(args: &[String]) -> Result<(), ShellError>
Expand description

Display file contents. Display file contents or piped input.

When invoked without arguments and pipe input is available, prints the piped data. Otherwise reads from the specified path.