Skip to content

Commit

Permalink
make name optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sethpollack committed Nov 15, 2018
1 parent 130c72a commit 44088cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ var installCmd = &cobra.Command{
r := repo.New(cfg.RootDir)
r.Init()

for _, a := range r.Applets {
install(a.Name)
for key, _ := range r.Applets {
install(key)
}
} else {
install(cfg.AppletName)
Expand Down
4 changes: 2 additions & 2 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ var listCmd = &cobra.Command{
r := repo.New(cfg.RootDir)
r.Init()

for _, a := range r.Applets {
fmt.Println(a.Name)
for key, _ := range r.Applets {
fmt.Println(key)
}

return nil
Expand Down
4 changes: 2 additions & 2 deletions cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ var (
r := repo.New(cfg.RootDir)
r.Init()

for _, a := range r.Applets {
uninstall(a.Name)
for key, _ := range r.Applets {
uninstall(key)
}
} else {
uninstall(cfg.AppletName)
Expand Down

0 comments on commit 44088cc

Please sign in to comment.