Repository navigation
Save the Console install script with console install --output - #935
Merged
Merged
Conversation
Setup now names the one-step command after enabling the Console. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… file Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 21, 2026
Merged
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
thirdshift console installcan now save its script in one step, and setup names that step once the Console is enabled.The script's header no longer names
install-console.sh, so a script saved under another name doesn't tell its reader to run a different file. The README,thirdshift helpand the usage line describe the flag.Evidence
thirdshift console install --output install-console.shwas rejected with the usage line. On the first commit, the reviewers' testoutput_names_a_copyable_sudo_command_for_a_spaced_pathfailed:Wrote my script.sh. Read it, then run: sudo sh my script.shAfter:
cargo test --test console_installpasses 13 of 13, including:tests/setup.rsnow asserts that setup namesthirdshift console install --output install-console.sh. The fullcargo testsuite passes: 2208 passed, 0 failed.Merge Danger
Door: two-way
A new, optional flag; the plain command still prints the same script. The only change to the printed script is its first comment line.
Blast Radius: small
Owners who follow the setup hint get a file written to the current directory, replacing any file of that name.
Review coverage
Both the Standards and Spec reviewers read every changed file. Unread changed files: none. Generated-output exclusions: none.
Unaddressed findings
Standards
install_toisinstall(), a write and a message (src/console/install.rs,install_to). The reviewer called it acceptable: it keeps the file I/O and the owner-facing next step in the module that owns Console installation (docs/code-navigation.md, Console installation row). Moving it intomain.rswould split that.install-console.shrepeated. Its one stale-making use, the script header, was removed. The name that remains in source is the single setup hint insrc/setup.rsoffer_console_install; the README and tests use it as an example. A shared constant would serve one source use.--jsoncase inoutput_needs_a_file_nameis an unknown-argument check, not an--outputone. The reviewer called it harmless. It checks that the usage line is shown for an argumentinstalldoesn't take.output: Option<String>and Duplicated Code in theinstall --outputmatch arm. The reviewer suppressed both under house convention:ConsoleThemeImport(String)and thepassword --emailarm insrc/args.rshave the same shapes.Spec
None. Both Spec findings were addressed: the sudo command is quoted, and the module comment now says "prints or saves a script".
Closes #916
🤖 Generated with Claude Code
Built with claude · claude-opus-5-5 · medium
Security review outcome
No unaddressed introduced findings.