Skip to content

Commit c094f10

Browse files
Add dynamic prompt text support to REPL
Implements customizable prompt text that can be static or dynamically generated, appearing before the prompt symbol in the REPL interface. Changes: - Add History.get_all/0 to retrieve command history as string list - Add Arca.Cli.prompt_text/1 to handle prompt generation with three modes: - nil config: default prompt (backward compatible) - static string: prepends text to default prompt format - function/1: delegates full prompt generation to custom function - Update REPL.repl_prompt/0 to build context and use prompt_text/1 The prompt_text function receives context with config_domain, history_count, history_cmds, and prompt_symbol. When a function is configured, it has full control over the entire prompt string generation. This allows dependent projects to display contextual information in their prompts while maintaining backward compatibility for existing projects. Also removes .backup directory from git tracking and adds to .gitignore.
1 parent 6bd065c commit c094f10

29 files changed

+241
-4731
lines changed

.backup/backup-20250720-182633/CLAUDE.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

.backup/backup-20250720-182633/stp/.config/config

Lines changed: 0 additions & 5 deletions
This file was deleted.

.backup/backup-20250720-182633/stp/.config/stp_config.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.
Binary file not shown.

.backup/backup-20250720-182633/stp/eng/tpd/1_introduction.md

Lines changed: 0 additions & 71 deletions
This file was deleted.

.backup/backup-20250720-182633/stp/eng/tpd/2_requirements.md

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)