ShellCommand.fromArguments constructor

ShellCommand.fromArguments(
  1. Iterable<String> arguments
)

Parse a list of arguments, the first one being the executable

Implementation

ShellCommand.fromArguments(Iterable<String> arguments)
  : executable = arguments.firstOrNull ?? '',
    arguments = arguments.isEmpty ? [] : arguments.skip(1).toList();