implementing dependency management in the cli

This commit is contained in:
viljarb
2026-03-25 14:27:38 +01:00
parent 7a68735dbb
commit 13d54d9e81
3 changed files with 208 additions and 0 deletions

View File

@@ -28,6 +28,12 @@ func (r *REPL) execute(input string) (string, error) {
if after, ok := strings.CutPrefix(input, "pm"); ok {
if strings.Contains(strings.Split(after, " ")[1], "start") {
//trimmedAfter := strings.TrimSpace(after)
//parts := shellSplit(trimmedAfter)
// Prevent accidental attempts to run "pm start ..." inside the REPL.
// (The REPL uses `status/title/help` and shell execution instead.)
//if len(parts) > 1 && strings.Contains(parts[1], "start") {
return "Nice try👻", nil
}