Index

Functions

expandExstr

  • expandExstr(exstr: string, aliases?: any, prevExpansions?: string[]): string
  • 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

    • Default value aliases: any = config.get("exaliases")
    • Default value prevExpansions: string[] = []

    Returns string

getCmdAliasMapping

  • getCmdAliasMapping(aliases?: any): {}
  • Get all aliases for all commands.

    Parameters

    • Default value aliases: any = config.get("exaliases")

      An object mapping aliases to commands

    Returns {}

    commands An object mapping commands to an array of aliases

    • [str: string]: string[]