todo
This commit is contained in:
parent
3b4b244ab0
commit
52a02a7a4b
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue