This commit is contained in:
vilmibm 2020-05-27 23:23:45 -05:00
parent 3b4b244ab0
commit 52a02a7a4b
2 changed files with 3 additions and 2 deletions

View file

@ -11,7 +11,7 @@ import (
// TODO
// - [ ] DEBUG support
// - [ ] blank aliases stanza
// - [x] blank aliases stanza
// - [x] give our commands precedence
// - [x] prevent overriding existing gh command
// - [x] allow overwriting alias

View file

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