ShellCommandsMapExtension extension

Provides convinience methods for ShellCommandsMap.

on

Methods

contains({required String command, required SystemShell systemShell}) bool
Whether the command is contained in systemShell.
exclude({required String command, required SystemShell systemShell}) ShellCommandsMap
Returns a new ShellCommandsMap with the given command removed from systemShell.
include({required String command, required SystemShell systemShell}) ShellCommandsMap
Returns a new ShellCommandsMap with the given command added to systemShell.