-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
When executing the alias import command with the clobber flag specified, the aliases are not overwritten.
Steps to reproduce the behavior
bugs: issue list --label=bug
co: pr checkout
features: |-
issue list
--label=enhancement
igrep: '!gh issue list --label="$1" | grep "$2"'- Create a YAML file called
aliases.ymlusing the aliases above. - Run
gh alias importusingaliases.ymlas input. - Run
gh alias import --clobberusingaliases.ymlas input.
Expected vs actual behavior
Expected: The aliases are overwritten and produces the following messages.
- Importing aliases from file "aliases.yml"
! Changed alias bugs
! Changed alias co
! Changed alias features
! Changed alias igrepActual: The aliases are not overwritten and produces the following messages.
- Importing aliases from file "aliases.yml"
X Could not import alias bugs: already a gh command, extension, or alias
X Could not import alias co: already a gh command, extension, or alias
X Could not import alias features: already a gh command, extension, or alias
X Could not import alias igrep: already a gh command, extension, or aliasReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic