From 3f219af35b0596a65548eacfa066eee9f0880e90 Mon Sep 17 00:00:00 2001 From: Furkan Pehlivan <65170388+pehlicd@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:28:43 +0100 Subject: [PATCH] fix(cli): add help message to alert get cmd (#901) --- docs/mint.json | 8 ++++++++ keep/cli/cli.py | 1 + 2 files changed, 9 insertions(+) diff --git a/docs/mint.json b/docs/mint.json index e7bf70b1f..e3c6382c3 100644 --- a/docs/mint.json +++ b/docs/mint.json @@ -257,6 +257,14 @@ } ] }, + { + "group": "keep mappings", + "pages": [ + "cli/commands/mappings-list", + "cli/commands/mappings-create", + "cli/commands/mappings-delete" + ] + }, "cli/commands/cli-api", "cli/commands/cli-config", "cli/commands/cli-version", diff --git a/keep/cli/cli.py b/keep/cli/cli.py index 316911ce3..856da8d36 100644 --- a/keep/cli/cli.py +++ b/keep/cli/cli.py @@ -1067,6 +1067,7 @@ def alert(info: Info): ) @pass_info def get_alert(info: Info, fingerprint: str): + """Get an alert by fingerprint.""" resp = _get_alert_by_fingerprint(info.keep_api_url, info.api_key, fingerprint) if not resp.ok: raise Exception(f"Error getting alert: {resp.text}")