Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

fix: Return help for codegate cli. #642

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/codegate/pipeline/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ async def codegate_cli(command):
available_commands = {
"version": Version().exec,
"workspace": Workspace().exec,
"-h": lambda _: HELP_TEXT,
}
out_func = available_commands.get(command[0])
if out_func is None:
if command[0] == "-h":
return HELP_TEXT
return NOT_FOUND_TEXT

return await out_func(command[1:])
Expand Down
Loading