File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ package jsonpath
2
+
3
+ import (
4
+ _ "embed"
5
+
6
+ "github.com/sailpoint-oss/sailpoint-cli/internal/util"
7
+ "github.com/spf13/cobra"
8
+ )
9
+
10
+ //go:embed jsonpath.md
11
+ var jsonpathHelp string
12
+
13
+ func NewJSONPathCmd () * cobra.Command {
14
+ help := util .ParseHelp (jsonpathHelp )
15
+ cmd := & cobra.Command {
16
+ Use : "jsonpath" ,
17
+ Short : "JSONPath validation for workflows and event triggers" ,
18
+ Long : help .Long ,
19
+ Example : help .Example ,
20
+ Aliases : []string {"jp" },
21
+ Args : cobra .MaximumNArgs (1 ),
22
+
23
+ Run : func (cmd * cobra.Command , args []string ) {
24
+ cmd .Help ()
25
+ },
26
+ }
27
+
28
+ // log.Info("Hello World!")
29
+
30
+ return cmd
31
+ }
Original file line number Diff line number Diff line change
1
+ ==Long==
2
+ # JSONPath Validator
3
+ JSONPath validation for workflows and event triggers.
4
+
5
+ References:
6
+ - https://developer.sailpoint.com/docs/extensibility/event-triggers/filtering-events
7
+ - https://documentation.sailpoint.com/saas/help/workflows/workflow-basics.html#trigger_filter
8
+ ====
9
+
10
+ ==Example==
11
+
12
+ ``` bash
13
+ sail spconfig jsonpath
14
+ ```
15
+
16
+ ====
Original file line number Diff line number Diff line change 6
6
"github.com/sailpoint-oss/sailpoint-cli/cmd/cluster"
7
7
"github.com/sailpoint-oss/sailpoint-cli/cmd/connector"
8
8
"github.com/sailpoint-oss/sailpoint-cli/cmd/environment"
9
+ "github.com/sailpoint-oss/sailpoint-cli/cmd/jsonpath"
9
10
"github.com/sailpoint-oss/sailpoint-cli/cmd/report"
10
11
"github.com/sailpoint-oss/sailpoint-cli/cmd/rule"
11
12
"github.com/sailpoint-oss/sailpoint-cli/cmd/sanitize"
@@ -53,6 +54,7 @@ func NewRootCommand() *cobra.Command {
53
54
cluster .NewClusterCommand (),
54
55
connector .NewConnCmd (t ),
55
56
environment .NewEnvironmentCommand (),
57
+ jsonpath .NewJSONPathCmd (),
56
58
report .NewReportCommand (),
57
59
sdk .NewSDKCommand (),
58
60
search .NewSearchCommand (),
You can’t perform that action at this time.
0 commit comments