[][src]Function broot::command_parsing::parse_command_sequence

pub fn parse_command_sequence(
    sequence: &str,
    con: &AppContext
) -> Result<Vec<Command>, ProgramError>

parse a string which is meant as a sequence of commands. Note that this is inherently flawed as packing several commands into a string without hard separator is ambiguous in the general case.

In the future I might introduce a way to define a variable hard separator (for example "::sep=#:some_filter#:some command with three arguments#a_filter")

The current parsing try to be the least possible flawed by giving verbs the biggest sequence of tokens accepted by their execution pattern.