Returns a helpful error message given an invalid command name,
Evaluate all arguments from a call, performing expansions when necessary.
Return map of <removed_command_name, new_command_name>
This covers simple removed commands nicely, but it’s not great for deprecating
subcommands like foo bar
where foo
is still a valid command.
For those, it’s currently easiest to have a “stub” command that just returns an error.
Sort a value. This only makes sense for lists and list-like things,
so for everything else we just return the value as-is.
CustomValues are converted to their base value and then sorted.
Sort a value in-place. This is more efficient than sort_value() because it
avoids cloning, but it does not work for CustomValues; they are returned as-is.
Searches for the absolute path of an executable by name. .bat
and .cmd
files are recognized as executables on Windows.