Skip to content

Commit

Permalink
Add service NAME to status command
Browse files Browse the repository at this point in the history
  • Loading branch information
astoycos committed May 14, 2020
1 parent 359c7f4 commit 28d8ee2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/knative-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func service(service string) {

}

func serviceStatus() {
func serviceStatus(service string) {

//Make command options for Knative Setup
co := utils.NewCommandOptions()
Expand All @@ -145,7 +145,7 @@ func serviceStatus() {
log.Println("Get Knative Service Status")

cmd := get.NewCmdGet("kubectl", co.CurrentFactory, IOStreams)
cmd.Run(cmd, []string{"ksvc"})
cmd.Run(cmd, []string{"ksvc", service})
log.Print(out.String())
out.Reset()
}
Expand Down Expand Up @@ -213,7 +213,7 @@ to quickly create a Cobra application.`,
log.Fatal("Wrong number of Input arguments expected 1 ceph user got " + strconv.Itoa(len(args)))
} else {
if status {
serviceStatus()
serviceStatus(args[0])
} else if logView {
//logs(args[0])
} else {
Expand Down

0 comments on commit 28d8ee2

Please sign in to comment.