mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-06 04:21:15 +00:00
finalized workflow list command
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
_ "embed"
|
||||
|
||||
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
||||
"github.com/sailpoint-oss/sailpoint-cli/internal/output"
|
||||
"github.com/sailpoint-oss/sailpoint-cli/internal/sdk"
|
||||
"github.com/sailpoint-oss/sailpoint-cli/internal/util"
|
||||
"github.com/spf13/cobra"
|
||||
@@ -38,7 +39,12 @@ func newListCommand() *cobra.Command {
|
||||
}
|
||||
}
|
||||
|
||||
cmd.Println(util.PrettyPrint(workflows))
|
||||
var tableList [][]string
|
||||
for _, entry := range workflows {
|
||||
tableList = append(tableList, []string{*entry.Name, *entry.Id})
|
||||
}
|
||||
|
||||
output.WriteTable(cmd.OutOrStdout(), []string{"Name", "ID"}, tableList)
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# List
|
||||
|
||||
List all of the workflows from IdentityNow.
|
||||
List workflows from IdentityNow.
|
||||
|
||||
## API References
|
||||
- https://developer.sailpoint.com/idn/api/beta/list-workflows
|
||||
|
||||
Reference in New Issue
Block a user