Skip to content

Commit

Permalink
Merge pull request #15 from kaytu-io/fix/updating-readme
Browse files Browse the repository at this point in the history
fix: updated readme
  • Loading branch information
ADorigi authored Sep 17, 2024
2 parents 1f81d32 + 81bb9af commit 0316a5e
Show file tree
Hide file tree
Showing 10 changed files with 130 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
"--app_endpoint=https:",
"--apikey=key"
]
},
{
"name": "benchmarks",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"args": [
"get",
"benchmarks",
"--page-size=1",
"--page-number=1"
]
}
]
}
61 changes: 54 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,62 @@

CLI for opengovernance

![Root Command GIF](./tapes/gif/root.gif)

## List of Commands

- configure
- get benchmarks
- get compliance-summary-for-benchmark
- get compliance-summary-for-integration
- get controls
- get jobs
- get job-details
- [configure](#configure)
- [get]()
- [benchmarks](#benchmarks)
- compliance-summary-for-benchmark
- compliance-summary-for-integration
- controls
- jobs
- job-details
- run compliance
- run discovery

## Configure

Configuration for checkctl

![Configure Command GIF](./tapes/gif/configure.gif)

Interactive mode:
```
checkctl configure
```
Non-interactive mode:
```
checktl configure --api-key <<api-key>> --app-endpoint https://path.to.app.endpoint --output json
```

## get

### benchmarks

Get a list of benchmarks

![Get Benchmarks Command GIF](./tapes/gif/getbenchmarks.gif)

Available flags:

| Flag | Description | Default
|----- | ----------- | -------
|`--page-size` | Defines page size of response | 25
|`--page-number` | Defines page number of response| 1
|`--show-only-root` | Show only root benchmarks | true
|`--include-findings-summary` | Include findings summary in response | false

### controls

Get a list of controls

![Get Controls Command GIF](./tapes/gif/getcontrols.gif)

Available flags:

| Flag | Description | Default
|----- | ----------- | -------
|`--page-size` | Defines page size of response | 25
|`--page-number` | Defines page number of response| 1
19 changes: 19 additions & 0 deletions tapes/configure.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Set Shell zsh
Sleep 1.5s
Type "checkctl configure"
Enter
Escape
Sleep 1.5s
Type "<<api-key>>"
Sleep 500ms
Enter
Sleep 1s
Type "<<api-endpoint>>"
Enter
Sleep 1s
Type "<<utilization-endpoint>>"
Sleep 500ms
Enter
Sleep 500ms
Enter

18 changes: 18 additions & 0 deletions tapes/getbenchmark.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Set Shell zsh
Sleep 1.5s
Type "checkctl get "
Sleep 1s
Type "benchmarks "
Sleep 500ms
Type "--page-size "
Sleep 500ms
Type "1 --page"
Sleep 500ms
Type "-number "
Sleep 1s
Type "1"
Sleep 500ms
Enter
Sleep 28s
Ctrl+D

10 changes: 10 additions & 0 deletions tapes/getcontrols.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Set Shell zsh
Sleep 500ms
Type "checkctl get controls --page-number 1 "
Sleep 500ms
Type "--page-size 1"
Sleep 2s
Enter
Sleep 3.5s
Ctrl+D

Binary file added tapes/gif/configure.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tapes/gif/getbenchmarks.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tapes/gif/getcontrols.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tapes/gif/root.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions tapes/root.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Set Shell zsh
Sleep 1s
Type "checkctl "
Sleep 500ms
Type "| less"
Sleep 500ms
Enter
Sleep 3s
Enter
Sleep 2s
Enter 34
Sleep 1.5s
Type "q"
Sleep 1.5s
Ctrl+D

0 comments on commit 0316a5e

Please sign in to comment.