Skip to content

Commit de6fb41

Browse files
Update cases.py (#221)
1 parent b94569c commit de6fb41

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/code42cli/cmds/cases.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ def _display_file_events(events):
172172
@cases.command()
173173
@case_number_arg
174174
@click.option(
175-
"--include-file-events", is_flag=True, help="View events associated to the case."
175+
"--include-file-events",
176+
is_flag=True,
177+
help="View file events associated to the case.",
176178
)
177179
@sdk_options()
178180
@format_option
@@ -198,7 +200,7 @@ def show(state, case_number, format, include_file_events):
198200
)
199201
@sdk_options()
200202
def export(state, case_number, path):
201-
"""Download a case detail summary as a pdf file at the given path with name <case_number>_case_summary.pdf."""
203+
"""Download a case detail summary as a PDF file at the given path with name <case_number>_case_summary.pdf."""
202204
response = state.sdk.cases.export_summary(case_number)
203205
file = os.path.join(path, "{}_case_summary.pdf".format(case_number))
204206
with open(file, "wb") as f:
@@ -217,7 +219,7 @@ def file_events(state):
217219
@sdk_options()
218220
@format_option
219221
def file_events_list(state, case_number, format):
220-
"""List all the events associated with the case."""
222+
"""List all the file events associated with the case."""
221223
formatter = OutputFormatter(format, _get_events_header())
222224
try:
223225
response = state.sdk.cases.file_events.get_all(case_number)
@@ -236,7 +238,7 @@ def file_events_list(state, case_number, format):
236238
@file_event_id_option
237239
@sdk_options()
238240
def add(state, case_number, event_id):
239-
"""Associate an event id to a case."""
241+
"""Associate a file event to a case, by event ID."""
240242
try:
241243
state.sdk.cases.file_events.add(case_number, event_id)
242244
except Py42BadRequestError:
@@ -248,7 +250,7 @@ def add(state, case_number, event_id):
248250
@file_event_id_option
249251
@sdk_options()
250252
def remove(state, case_number, event_id):
251-
"""Remove the associated event id from the case."""
253+
"""Remove the associated file event from the case, by event ID."""
252254
try:
253255
state.sdk.cases.file_events.delete(case_number, event_id)
254256
except Py42NotFoundError:

0 commit comments

Comments
 (0)