Skip to content

Commit

Permalink
fix(cli): add help message to alert get cmd (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
pehlicd authored Mar 6, 2024
1 parent d930b9a commit 3f219af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions keep/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 3f219af

Please sign in to comment.