Permalink
Browse files

Add list targets command

  • Loading branch information...
zachhuff386 committed Aug 13, 2016
1 parent af3ed11 commit 0f576153b1cf61f7aeffeb2410f8c5daa82a1f8a
Showing with 16 additions and 0 deletions.
  1. +2 −0 cmd/cmd.go
  2. +14 −0 cmd/listtargets.go
View
@@ -21,6 +21,8 @@ func Parse() (err error) {
err = utils.PullContainers()
case "genkey":
err = GenKey()
case "list-targets":
err = ListTargets()
default:
err = &UnknownCommand{
errors.Newf("cmd: Unknown command '%s'", cmd),
View
@@ -0,0 +1,14 @@
package cmd
import (
"fmt"
"github.com/pacur/pacur/constants"
)
func ListTargets() (_ error) {
for _, release := range constants.Releases {
fmt.Println(release)
}
return
}

0 comments on commit 0f57615

Please sign in to comment.