Skip to content

Commit 2c90dfc

Browse files
lzwjavaclaude
andcommitted
refactor: change .exit to /exit for consistency
- Update command from .exit to /exit - Support both .exit and /exit for backward compatibility - Update tab completion Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a2552c6 commit 2c90dfc

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

iclaw/completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"/clear",
1818
"/compact",
1919
"/export",
20-
".exit",
20+
"/exit",
2121
]
2222

2323

iclaw/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
("/export", "Export full conversation history to JSON file"),
4545
("/status", "Show current settings"),
4646
("/help", "Show available commands"),
47-
(".exit", "Quit"),
47+
("/exit", "Quit"),
4848
]
4949

5050

@@ -99,7 +99,7 @@ def main():
9999
print(f" {cmd:<20} {desc}")
100100
print()
101101
continue
102-
if user_input == ".exit":
102+
if user_input in ("/exit", ".exit"):
103103
print("Goodbye!")
104104
break
105105
if user_input == "/copy":

0 commit comments

Comments
 (0)