feat: add ExecuteOnStartup configuration option and wizard prompt - #16
Conversation
This commit introduces a new configuration option, `ExecuteOnStartup`, which allows the user to choose whether the command should be executed unconditionally when the application starts or only when a subsequent Git repository change is detected. Changes made: - Added `ExecuteOnStartup` boolean to `config.Config`. - Updated `tui_wizard` to prompt the user with "Execute command on startup regardless of git state?" using `huh.NewConfirm`. - Updated `poller` logic to skip sending the initial `UpdateDetectedMsg` if `ExecuteOnStartup` is false. - Added and updated tests in `poller_test.go` to cover the new behavior. Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR implements the requested feature to add an option that controls whether the configured command executes automatically when the program starts.
ExecuteOnStartupboolean configuration parameter.tui_wizardconfiguration screen to include a confirmation prompt for this setting.ExecuteOnStartupis false, it assigns the initial hash but does not emit a change detection event, so the execution is deferred until a real change happens in the git repository.PR created automatically by Jules for task 13866448791882675491 started by @starpia-forge