Skip to content

Commit 52a02a7

Browse files
committed
todo
1 parent 3b4b244 commit 52a02a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

command/alias.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
// TODO
1313
// - [ ] DEBUG support
14-
// - [ ] blank aliases stanza
14+
// - [x] blank aliases stanza
1515
// - [x] give our commands precedence
1616
// - [x] prevent overriding existing gh command
1717
// - [x] allow overwriting alias

internal/config/alias_config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ func (a *AliasConfig) Get(alias string) string {
2929

3030
func (a *AliasConfig) Add(alias, expansion string) error {
3131
if a.Root == nil {
32-
// TODO awful hack bad type conversion i'm sorry
32+
// TODO awful hack bad type conversion i'm sorry. this is to support an empty aliases key and
33+
// ought to be generalized into ConfigMap or fileConfig (via Config interface) itself.
3334
entry, err := a.Parent.(*fileConfig).FindEntry("aliases")
3435

3536
var notFound *NotFoundError

0 commit comments

Comments
 (0)