Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/bub/builtin/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ def show_help() -> str:
" ,fs.write path=tmp.txt content='hello'\n"
" ,fs.edit path=tmp.txt old=hello new=world\n"
" ,bash cmd='sleep 5' background=true\n"
" ,bash_output shell_id=bsh-12345678\n"
" ,kill_bash shell_id=bsh-12345678\n"
" ,bash.output shell_id=bsh-12345678\n"
" ,bash.kill shell_id=bsh-12345678\n"
"Any unknown command after ',' is executed as shell via bash."
)

Expand Down
16 changes: 16 additions & 0 deletions tests/test_cli_help.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from __future__ import annotations

import pytest

from bub.builtin.tools import show_help


@pytest.mark.asyncio
async def test_help_lists_correct_tool_names() -> None:
help_text = await show_help.run()

assert ",bash.output" in help_text
assert ",bash.kill" in help_text

assert ",bash_output" not in help_text
assert ",kill_bash" not in help_text
Loading