Skip to content

Improve REPL usability with help, clear commands, and status messages#95

Open
peter-at-progress wants to merge 2 commits into
narfindustries:mainfrom
peter-at-progress:feature/improve-repl-help-and-commands
Open

Improve REPL usability with help, clear commands, and status messages#95
peter-at-progress wants to merge 2 commits into
narfindustries:mainfrom
peter-at-progress:feature/improve-repl-help-and-commands

Conversation

@peter-at-progress
Copy link
Copy Markdown

  • Add interactive help command with documentation
  • Add clear command to reset terminal screen
  • Add welcome message with colored text and usage hints
  • Enable command history with arrow keys (readline integration)
  • Auto-detect and use Python venv in garden.sh when available
  • Add info message showing running containers alongside warnings

- Add interactive help command with comprehensive documentation
- Add clear command to reset terminal screen
- Add welcome message with colored text and usage hints
- Enable command history with arrow keys (readline integration)
- Auto-detect and use Python venv in garden.sh when available
- Add info message showing running containers alongside warnings
@kenballus
Copy link
Copy Markdown
Collaborator

Hey Peter!

Sorry it's taken me so long to respond on this -- I have a lot on my plate right now.

Anyway, the help command is useful. I'd be happy to merge that.

I had readline integration in the past, but I always found it kind of buggy on my machine. I'll take a look and see if this works any better than what I had before.

As for venvs, I think probably the right thing to do is use uv inside of garden.sh, and hide all of this from the user.

I don't love the clear command; os.system is a hack. Honestly, a good terminal emulator should have a Ctrl-L binding for clearing the screen, so I'd advise that you use that.

Rest of it looks pretty good. I'll make some code suggestions and then we can merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants