safeCommands top-level constant
Commands that are always safe (read-only, no side effects).
Implementation
const safeCommands = <String>{
'ls',
'dir',
'pwd',
'whoami',
'hostname',
'uname',
'cat',
'head',
'tail',
'less',
'more',
'wc',
'echo',
'printf',
'date',
'cal',
'which',
'where',
'whereis',
'whatis',
'type',
'file',
'stat',
'du',
'df',
'env',
'printenv',
'set',
'id',
'groups',
'true',
'false',
'basename',
'dirname',
'realpath',
'readlink',
'md5sum',
'sha256sum',
'sha1sum',
'sort',
'uniq',
'tr',
'cut',
'paste',
'fold',
'column',
'diff',
'comm',
'cmp',
'tee',
'xargs',
'seq',
'yes',
};