Skip to content

Commit 6a495a2

Browse files
committed
chore: #134 Add advanced options description in help command
Signed-off-by: Laurent Broudoux <[email protected]>
1 parent 4eeecef commit 6a495a2

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

cmd/help.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func (c *helpCommand) Execute() {
4141
fmt.Println(" test launch new test on Microcks server")
4242
fmt.Println(" import import API artifacts on Microcks server")
4343
fmt.Println("")
44+
fmt.Println("")
4445
fmt.Println("Use: microcks-cli test <apiName:apiVersion> <testEndpoint> <runner> \\")
4546
fmt.Println(" --microcksURL=<> --waitFor=5sec \\")
4647
fmt.Println(" --keycloakClientId=<> --keycloakClientSecret=<>")
@@ -52,10 +53,19 @@ func (c *helpCommand) Execute() {
5253
fmt.Println("")
5354
fmt.Println("Flags: ")
5455
fmt.Println(" --microcksURL Microcks API endpoint")
55-
fmt.Println(" --waitFor Time to wait for test to finish (int + one of: milli, sec, min)")
56+
fmt.Println(" --waitFor Time to wait for test to finish (int + one of: milli, sec, min)")
5657
fmt.Println(" --keycloakClientId Keycloak Realm Service Account ClientId")
5758
fmt.Println(" --keycloakClientSecret Keycloak Realm Service Account ClientSecret")
5859
fmt.Println("")
60+
fmt.Println("Advanced options: ")
61+
fmt.Println(" --secretName Secret to use for connecting test endpoint")
62+
fmt.Println(" --filteredOperations JSON list of operations to launch a test for")
63+
fmt.Println(" --operationsHeaders Override of operations headers as JSON string")
64+
fmt.Println(" --oAuth2Context JSON Spec of an OAuth2 client context as JSON string")
65+
fmt.Println(" --insecure Whether to accept insecure HTTPS connection (false by default)")
66+
fmt.Println(" --caCerts Comma separated paths of CRT files to add to Root CAs")
67+
fmt.Println(" --verbose Produce dumps of HTTP exchanges (false by default)")
68+
fmt.Println("")
5969
fmt.Println("")
6070
fmt.Println("Use: microcks-cli import <specificationFile1[:primary],specificationFile2[:primary]> \\")
6171
fmt.Println(" --microcksURL=<> \\")
@@ -69,4 +79,9 @@ func (c *helpCommand) Execute() {
6979
fmt.Println(" --keycloakClientId Keycloak Realm Service Account ClientId")
7080
fmt.Println(" --keycloakClientSecret Keycloak Realm Service Account ClientSecret")
7181
fmt.Println("")
82+
fmt.Println("Advanced options: ")
83+
fmt.Println(" --insecure Whether to accept insecure HTTPS connection (false by default)")
84+
fmt.Println(" --caCerts Comma separated paths of CRT files to add to Root CAs")
85+
fmt.Println(" --verbose Produce dumps of HTTP exchanges (false by default)")
86+
fmt.Println("")
7287
}

0 commit comments

Comments
 (0)