Skip to content

Commit

Permalink
Add workflows' details to project list
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdiaa committed Nov 7, 2023
1 parent a7449fc commit 3dc1a3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os"
"strconv"

"github.com/google/uuid"
"github.com/trickest/trickest-cli/client/request"
"github.com/trickest/trickest-cli/types"
"github.com/trickest/trickest-cli/util"
Expand All @@ -30,7 +31,7 @@ var ListCmd = &cobra.Command{
space, project, workflow, found := util.GetObjects(args)

if !found {
fmt.Println("Error: Workflow not found")
fmt.Println("Error: Not found")
return
}

Expand All @@ -45,6 +46,7 @@ var ListCmd = &cobra.Command{
}
printWorkflow(*workflow, jsonOutput)
} else if project != nil {
project.Workflows = util.GetWorkflows(project.ID, uuid.Nil, "", false)
printProject(*project, jsonOutput)
} else if space != nil {
printSpaceDetailed(*space)
Expand Down

0 comments on commit 3dc1a3e

Please sign in to comment.