upsertCommandAlias
This content is for v1.3.1. Switch to the latest version for up-to-date documentation.
upsertCommandAlias(
aliases,alias): readonlyCommandAlias[]
Defined in: domain/cli/command-alias.ts:62
Alias一覧へaliasを後勝ちで追加します。
Parameters
Section titled “Parameters”aliases
Section titled “aliases”readonly CommandAlias[]
追加前alias一覧です。
追加するaliasです。
Returns
Section titled “Returns”readonly CommandAlias[]
追加後alias一覧です。
Example
Section titled “Example”const result = upsertCommandAlias([{ name: "c", command: "clear" }], { name: "c", command: "cd /Work",});