getAllLogicalNames method
Returns a list of all possibly command names that this command should run from including the original name and all aliases
Implementation
List<String> getAllLogicalNames() {
return [
command,
...(aliases ?? []),
];
}