Skip to main content

listing

Function listing 

Source
pub fn listing(outcome: &Outcome, full: bool, style: &Style) -> Vec<String>
Expand description

memfork ls, and memfork at listing a branch.

Into a pipe or a file, exactly the lines the command produced: whole values, whatever they hold, so a script sees every byte. On a terminal, each value is put on one line and cut to fit the width, with a marker where it was cut and a note saying --full shows it whole — three stored decisions should not fill a screen with JSON. An empty listing says so on a terminal, rather than printing nothing.