Skip to main content

opens_view

Function opens_view 

Source
pub fn opens_view(command: &str, batch: bool) -> bool
Expand description

Whether command opens its view, for a command that runs without one too (qc, stat): not when batch is asked (batch, its --batch-process, or BATCH_ENV), and only on a terminal. A view skipped for want of a terminal (output redirected, say) is said in one line on stderr, so the switch is never silent; asked for, it is quiet.