Index

Functions

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