Skip to content

Commit f8149a5

Browse files
authored
CM-25595 - Drop support of --version option (#147)
1 parent 6feeb08 commit f8149a5

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.github/workflows/build_executable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
run: poetry run pyinstaller pyinstaller.spec
6363

6464
- name: Test executable
65-
run: ./dist/cycode --version
65+
run: ./dist/cycode version
6666

6767
- name: Sign macOS executable
6868
if: ${{ startsWith(matrix.os, 'macos') }}
@@ -110,7 +110,7 @@ jobs:
110110
111111
- name: Test signed executable
112112
if: ${{ startsWith(matrix.os, 'macos') }}
113-
run: ./dist/cycode --version
113+
run: ./dist/cycode version
114114

115115
- uses: actions/upload-artifact@v3
116116
with:

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -213,19 +213,19 @@ repos:
213213

214214
The following are the options and commands available with the Cycode CLI application:
215215

216-
| Option | Description |
217-
|--------------------------------------|-------------------------------------------------------------------|
218-
| `-o`, `--output [text\|json\|table]` | Specify the output (`text`/`json`/`table`). The default is `text` |
219-
| `-v`, `--verbose` | Show detailed logs |
220-
| `--version` | Show the version and exit. |
221-
| `--help` | Show options for given command. |
222-
223-
| Command | Description |
224-
|-------------------------------------|-------------|
225-
| [auth](#use-auth-command) | Authenticates your machine to associate CLI with your Cycode account. |
226-
| [configure](#use-configure-command) | Initial command to authenticate your CLI client with Cycode using client ID and client secret. |
227-
| [ignore](#ingoring-scan-results) | Ignore a specific value, path or rule ID |
228-
| [scan](#running-a-scan) | Scan content for secrets/IaC/SCA/SAST violations. You need to specify which scan type: `ci`/`commit_history`/`path`/`repository`/etc |
216+
| Option | Description |
217+
|--------------------------------------|--------------------------------------------------------------------|
218+
| `-o`, `--output [text\|json\|table]` | Specify the output (`text`/`json`/`table`). The default is `text`. |
219+
| `-v`, `--verbose` | Show detailed logs. |
220+
| `--help` | Show options for given command. |
221+
222+
| Command | Description |
223+
|-------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
224+
| [auth](#use-auth-command) | Authenticates your machine to associate CLI with your Cycode account. |
225+
| [configure](#use-configure-command) | Initial command to authenticate your CLI client with Cycode using client ID and client secret. |
226+
| [ignore](#ingoring-scan-results) | Ignore a specific value, path or rule ID. |
227+
| [scan](#running-a-scan) | Scan content for secrets/IaC/SCA/SAST violations. You need to specify which scan type: `ci`/`commit_history`/`path`/`repository`/etc. |
228+
| version | Show the version and exit. |
229229

230230
# Running a Scan
231231

@@ -555,6 +555,7 @@ Ignore rules can be added to ignore specific secret values, specific SHA512 valu
555555
556556
> :warning: **Warning**<br/>
557557
> Adding values to be ignored should be done with careful consideration of the values, paths, and policies to ensure that the scans will pick up true positives.
558+
558559
The following are the options available for the `cycode ignore` command:
559560
560561
| Option | Description |

cycode/cli/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ def version(context: click.Context) -> None:
214214
help='Characteristic JSON object that lets servers identify the application',
215215
type=str,
216216
)
217-
@click.version_option(__version__, prog_name=PROGRAM_NAME)
218217
@click.pass_context
219218
def main_cli(
220219
context: click.Context, verbose: bool, no_progress_meter: bool, output: str, user_agent: Optional[str]

0 commit comments

Comments
 (0)