fix(install): support non-interactive environments and add --yes flag#158
Merged
stephenleo merged 2 commits intomainfrom Apr 19, 2026
Merged
fix(install): support non-interactive environments and add --yes flag#158stephenleo merged 2 commits intomainfrom
stephenleo merged 2 commits intomainfrom
Conversation
Guard both optional-dependency prompts (libsecret-tools, Starship) with a TTY probe so Docker RUN steps and CI pipelines no longer fail when /dev/tty is unavailable. Add --yes / -y flag to auto-install all optional deps without prompting. Interactive terminal behaviour is unchanged. Fixes #149 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
exec 3</dev/tty) before both optional-dependency prompts so DockerRUNsteps and CI pipelines no longer fail withNo such device or addresswhen/dev/ttyis unavailable--yes/-yflag to auto-install all optional deps (Starship, libsecret-tools on Linux) without prompting — useful for Dockerfiles that want a full setup--yesis not passedREADME.mdanddocs/index.mdto document all three modesBehaviour matrix
--yes/-yTest plan
CSHIP_TEST_ROOT=/tmp/t bash install.sh— completes with exit 0, prints skip messages for optional depsCSHIP_TEST_ROOT=/tmp/t bash install.sh --yes— auto-installs Starship (and libsecret-tools on Linux)CSHIP_TEST_ROOT=/tmp/t bash install.sh -y— shorthand works identicallybash -n install.sh— syntax check passesdocker buildwithRUN curl -fsSL https://cship.dev/install.sh | bashexits 0Fixes #149
🤖 Generated with Claude Code