File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ func (a *AliasConfig) Get(alias string) string {
2929
3030func (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
You can’t perform that action at this time.
0 commit comments