Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting the prompt via a commandline flag. #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 21, 2023

  1. Allow setting the prompt via a commandline flag.

    We have users who want to customize what the prompt looks like, to
    include things like the git repo they are running in.
    
    Test plan:
    I ran:
    ```
    % go run . -p "Huzzah> "
    // Welcome to gomacro. Type :help for help, :copy for copyright and license.
    // This is free software with ABSOLUTELY NO WARRANTY.
    Huzzah>
    ```
    
    I also did:
    ```
    % go run . -p
    // Welcome to gomacro. Type :help for help, :copy for copyright and license.
    // This is free software with ABSOLUTELY NO WARRANTY.
    gomacro>
    ```
    to verify things work when no prompt is actually specified.  (`-p` is
    just ignored in that case, similar to the existing behavior of `-e`).
    csilvers committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    3619497 View commit details
    Browse the repository at this point in the history