ShellCommandsMapExtension extension

Provides convinience methods for ShellCommandsMap.

on

Methods

contains({required String command, required SystemShell systemShell}) bool

Available on ShellCommandsMap, provided by the ShellCommandsMapExtension extension

Whether the command is contained in systemShell.
exclude({required String command, required SystemShell systemShell}) ShellCommandsMap

Available on ShellCommandsMap, provided by the ShellCommandsMapExtension extension

Returns a new ShellCommandsMap with the given command removed from systemShell.
include({required String command, required SystemShell systemShell}) ShellCommandsMap

Available on ShellCommandsMap, provided by the ShellCommandsMapExtension extension

Returns a new ShellCommandsMap with the given command added to systemShell.