Skip to content

Commit 6533a8c

Browse files
authored
Hide and mark ATS-related commands as deprecated (#662)
As a first step, this just hides the commands from help output, and marks them as deprecated, which means invoking them outputs a message saying so.
1 parent 8364881 commit 6533a8c

File tree

3 files changed

+5
-40
lines changed

3 files changed

+5
-40
lines changed

codecov_cli/commands/labelanalysis.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
logger = logging.getLogger("codecovcli")
2424

2525

26-
@click.command()
26+
@click.command(hidden=True, deprecated=True)
2727
@click.option(
2828
"--token",
2929
required=True,
@@ -141,7 +141,9 @@ def label_analysis(
141141
logger.info(f"Collected {len(requested_labels)} test labels")
142142
logger.debug(
143143
"Labels collected",
144-
extra=dict(extra_log_attributes=dict(labels_collected=requested_labels)),
144+
extra=dict(
145+
extra_log_attributes=dict(labels_collected=requested_labels)
146+
),
145147
)
146148
payload["requested_labels"] = requested_labels
147149

codecov_cli/commands/staticanalysis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
logger = logging.getLogger("codecovcli")
1616

1717

18-
@click.command()
18+
@click.command(hidden=True, deprecated=True)
1919
@click.option(
2020
"--foldertosearch",
2121
default=".",

codecovcli_commands

-37
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ Commands:
1717
do-upload
1818
empty-upload
1919
get-report-results
20-
label-analysis
2120
pr-base-picking
2221
process-test-results
2322
send-notifications
24-
static-analysis
2523
upload-coverage
2624
upload-process
2725

@@ -179,28 +177,6 @@ Options:
179177
repo token in Self-hosted
180178
-h, --help Show this message and exit.
181179

182-
Usage: codecovcli label-analysis [OPTIONS]
183-
184-
Options:
185-
--token TEXT The static analysis token (NOT the same
186-
token as upload) [required]
187-
--head-sha TEXT Commit SHA (with 40 chars) [required]
188-
--base-sha TEXT Commit SHA (with 40 chars) [required]
189-
--runner-name, --runner TEXT Runner to use
190-
--max-wait-time INTEGER Max time (in seconds) to wait for the label
191-
analysis result before falling back to
192-
running all tests. Default is to wait
193-
forever.
194-
--dry-run Print list of tests to run AND tests skipped
195-
AND options that need to be added to the
196-
test runner to stdout. Choose format with
197-
--dry-run-format option. Default is JSON.
198-
--dry-run-format [json|space-separated-list]
199-
Format in which --dry-run data is printed.
200-
Default is JSON.
201-
--runner-param TEXT
202-
-h, --help Show this message and exit.
203-
204180
Usage: codecovcli pr-base-picking [OPTIONS]
205181

206182
Options:
@@ -245,19 +221,6 @@ Options:
245221
repo token in Self-hosted
246222
-h, --help Show this message and exit.
247223

248-
Usage: codecovcli static-analysis [OPTIONS]
249-
250-
Options:
251-
--foldertosearch PATH Folder to search
252-
--numberprocesses INTEGER number of processes to use
253-
--pattern TEXT file pattern to search for
254-
--force / --no-force
255-
--commit-sha TEXT Commit SHA (with 40 chars) [required]
256-
--folders-to-exclude PATH Folders not to search
257-
--token TEXT The static analysis token (NOT the same token as
258-
upload) [required]
259-
-h, --help Show this message and exit.
260-
261224
Usage: codecovcli upload-coverage [OPTIONS]
262225

263226
Options:

0 commit comments

Comments
 (0)