add comments to the repl package

This commit is contained in:
Robin Olsen
2026-02-08 12:56:09 +01:00
parent 38faee631f
commit 3bf80ba859
6 changed files with 68 additions and 18 deletions

View File

@@ -5,13 +5,8 @@ import "github.com/c-bata/go-prompt"
const PromptPrefix = "> "
const OptionMaxSuggestions = 5
const (
ReplHelp = `Type 'pm help' for available PM commands.
You can also run shell commands directly. Type 'exit' or 'quit' to leave.`
ReplTitle = "Welcome to Project Management CLI! " + ReplHelp
)
// promptOptions returns a slice of prompt.Option
// to configure the behavior and appearance of the REPL prompt.
func promptOptions(history []string) []prompt.Option {
return []prompt.Option{
prompt.OptionPrefixTextColor(prompt.Cyan),