package command import ( "github.com/akatrevorjay/antibody" "github.com/akatrevorjay/antibody/bundle" "github.com/codegangsta/cli" ) // Update all previously bundled bundles var Update = cli.Command{ Name: "update", Usage: "updates all previously bundled commands", Action: func(ctx *cli.Context) { antibody.New(bundle.List(antibody.Home())).Update() }, }
package command import ( "fmt" "github.com/akatrevorjay/antibody" "github.com/akatrevorjay/antibody/bundle" "github.com/codegangsta/cli" ) // List all downloaded bundles var List = cli.Command{ Name: "list", Usage: "list all currently downloaded bundles", Action: func(ctx *cli.Context) { for _, b := range bundle.List(antibody.Home()) { fmt.Println(b.Name()) } }, }