Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
using antibody.Home instead of gohome.Cache
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Aug 18, 2016
1 parent 7d25d51 commit 007d4dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/antibody/command/list.go
Expand Up @@ -3,7 +3,7 @@ package command
import (
"fmt"

"github.com/caarlos0/gohome"
"github.com/getantibody/antibody"
"github.com/getantibody/antibody/project"
"github.com/urfave/cli"
)
Expand All @@ -13,7 +13,7 @@ var List = cli.Command{
Name: "list",
Usage: "list all currently downloaded bundles",
Action: func(ctx *cli.Context) error {
projects, err := project.List(gohome.Cache("antibody"))
projects, err := project.List(antibody.Home())
if err != nil {
return err
}
Expand Down
7 changes: 5 additions & 2 deletions cmd/antibody/command/update.go
@@ -1,7 +1,9 @@
package command

import (
"github.com/caarlos0/gohome"
"fmt"

"github.com/getantibody/antibody"
"github.com/getantibody/antibody/project"
"github.com/urfave/cli"
)
Expand All @@ -11,6 +13,7 @@ var Update = cli.Command{
Name: "update",
Usage: "updates all previously bundled commands",
Action: func(ctx *cli.Context) error {
return project.Update(gohome.Cache("antibody"))
fmt.Println("Updating all bundles in " + antibody.Home() + "...")
return project.Update(antibody.Home())
},
}

0 comments on commit 007d4dd

Please sign in to comment.