Skip to main content

bash_command

Function bash_command 

Source
pub fn bash_command<'a>(
    vfs: &'a dyn Vfs,
    cmd: &'a str,
    args: &'a [&'a str],
) -> BoxFuture<'a, Result<String, VfsError>>
Expand description

Translate a bash-style command string into a VFS operation.

Supported commands: ls, cat, rm, cp, mv, pwd, cd. Unrecognised commands return VfsError::Unsupported.