expandExstr
getCmdAliasMapping
  • Expands the alias in the provided exstr recursively. Does nothing if the command is not aliased, including when the command is invalid.

    Parameters

    • exstr: string

      :exstr typed by the user on the commantd line

    • aliases: any = ...
    • prevExpansions: string[] = []

    Returns string

  • Get all aliases for all commands.

    Parameters

    • aliases: any = ...

      An object mapping aliases to commands

    Returns { [str: string]: string[] }

    commands An object mapping commands to an array of aliases