Skip to content

Commit

Permalink
enhance docs (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
swethalohith2 authored Aug 1, 2024
1 parent e38d964 commit d2cbe6e
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pip3 install --upgrade synctl==<version>

**Incompatible Options:**
- Option `--from-json` removed: Use the `-f, --from-file` option instead. The `-f, --from-file` option reads synthetic test payload from `.json` files.
- Option `--bundle-entry-file` replaces `entry-file`: `--bundle-entry-file` option is now used to set entry file name of a bundle test.
- Option `--bundle-entry-file` replaces `--entry-file`: `--bundle-entry-file` option is now used to set entry file name of a bundle test.
- Option `--script` added: `--script` options reads different files according to their suffix, such as `.js`and `.side`.
# Configuration

Expand Down Expand Up @@ -103,7 +103,6 @@ Usage: synctl [--verify-tls] <command> [options]
Options:
-h, --help show this help message and exit
--version, -v show version
--verify-tls verify tls certificate
Commands:
config manage configuration file
Expand Down Expand Up @@ -140,7 +139,7 @@ Synthetic smart alert management:
- [synctl update alert](docs/synctl-update-alert.md) - Update properties of Smart Alert.
- [synctl delete alert](docs/synctl-delete-alert.md) - Delete smart alert.

Synthetic credentials management:
Synthetic credential management:
- [synctl get/create/update/delete cred](docs/synctl-credential.md) - Manage credentials.

Others:
Expand Down
1 change: 1 addition & 0 deletions docs/synctl-create-alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ synctl create alert [options]
## Options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
--test id [id ...] Synthetic test id, support multiple Synthetic tests id
--name <string> friendly name of the Smart Alerts
Expand Down
2 changes: 2 additions & 0 deletions docs/synctl-create-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ synctl create test [options]
### Common options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
-t <int>, --type <int> Synthetic type: 0 API Simple, 1 API Script, 2 Browser Script, 3 Webpage Script, 4 Webpage Simple, 5 SSLCertificate
--location id [id ...] location id, support multiple locations id
Expand Down
7 changes: 7 additions & 0 deletions docs/synctl-credential.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Manage Credentials

Manage Synthetic credentials.

## Options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
```
### Display all credentials
```
synctl get cred
Expand Down
5 changes: 5 additions & 0 deletions docs/synctl-delete-alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Delete Synthetic smart alert.
```
synctl delete alert [id...]
```
## Options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
```

## Examples

Expand Down
5 changes: 5 additions & 0 deletions docs/synctl-delete-loc.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Delete Synthetic location.
```
synctl delete location <location-id>
```
## Options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
```

## Examples

Expand Down
1 change: 1 addition & 0 deletions docs/synctl-delete-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ synctl delete test [id...] [options]
## Options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
--match-regex <regex> use a regex to match synthetic label
--match-location <id> delete tests match this location id
Expand Down
2 changes: 2 additions & 0 deletions docs/synctl-get-alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ synctl get alert [id] [options]
## Options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
--show-details output alert details to terminal
--show-json output alert json to terminal
Expand Down
2 changes: 2 additions & 0 deletions docs/synctl-get-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ commands:
options:
-h, --help show this help message and exit
--verify-tls verify tls certificate
--name-filter <app> filter application by name
```

Expand Down
1 change: 1 addition & 0 deletions docs/synctl-get-loc.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ synctl get location|lo [id] [options]
## Options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
--show-details output location details to console
```
Expand Down
3 changes: 3 additions & 0 deletions docs/synctl-get-result.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ synctl get result [id] [options]
## Options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
--test Synthetic test id
--window-size <window> set synthetic result window size, support [1,60]m, [1-24]h
--har save HAR to local
--use-env, -e <name> use a specified config
--host <host> set hostname
--token <token> set token
Expand Down
1 change: 1 addition & 0 deletions docs/synctl-get-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ synctl get test [id] [options]
## Options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
--type, -t <int> Synthetic type, 0 HTTPAction, 1 HTTPScript, 2 BrowserScript, 3 WebpageScript, 4 WebpageAction, 5 SSLCertificate
--window-size <window> set synthetic result window size, support [1,60]m, [1-24]h
Expand Down
1 change: 1 addition & 0 deletions docs/synctl-patch-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ synctl patch test id [options]
### Common options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
--active <boolean> set active
--frequency <int> set frequency
Expand Down
1 change: 1 addition & 0 deletions docs/synctl-update-alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ synctl update alert <id> [options]
## Options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
--from-file,-f <file-name> json payload
--test id [id ...] synthetic-test id, support multiple synthetic tests id
Expand Down
1 change: 1 addition & 0 deletions docs/synctl-update-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ synctl update test <id> [options]
### Common options
```
-h, --help show this help message and exit
--verify-tls verify tls certificate
--active <boolean> set active
--frequency <int> set frequency
Expand Down

0 comments on commit d2cbe6e

Please sign in to comment.