listCommand method

  1. @override
String listCommand(
  1. String args
)
override

A command, in this dialect, that lists a directory including hidden entries and with human-readable sizes (the ls -alh equivalent). args is the raw text typed after the shortcut (paths, extra flags), appended verbatim; empty lists the current directory.

Implementation

@override
String listCommand(String args) => args.isEmpty ? 'ls -alh' : 'ls -alh $args';