Repository navigation
Conversation
Build the CLI as `os` and keep `openshell` as a link to it in every package. Started through `openshell`, the CLI runs the same command and prints a one-line rename notice to stderr, which OPENSHELL_SUPPRESS_RENAME_WARNING hides. Release archives, the deb, the RPM, and the Homebrew formula install `os` with an `openshell` link. The snap adds an `os` app with an `os` alias request, and its `openshell` app runs the CLI without the notice until the Store grants the alias. SSH configs record the `os` path even when generated through the old name. CLI hints, help examples, tests, and development scripts use `os`. Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
Document the rename on the installation page, including the snap's `openshell.os` app and `os` alias and the variable that hides the rename notice. Snap instructions keep `openshell`, which runs the CLI without the notice until the Store grants the `os` alias. Completion help writes the files that bash, fish, and zsh load for `os`. Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
Running the CLI as openshell no longer prints the rename notice unless it is switched on in a later release. OPENSHELL_SUPPRESS_RENAME_WARNING still hides it once it is on. Related to ai-openshell#6199 Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
Running the CLI as openshell now prints a one-line rename notice to stderr. OPENSHELL_SUPPRESS_RENAME_WARNING hides it. Related to ai-openshell#6199 Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
3 tasks done
3 tasks done
This branch has not been deployed
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
Turns on the rename notice that #6203 ships switched off. Started as
openshell, the CLI prints a one-line notice to stderr and then runs normally;OPENSHELL_SUPPRESS_RENAME_WARNINGhides it.Depends on #6203: this branch is stacked on it, so the diff includes its commits until it merges. Only the last commit,
feat(cli): print the openshell rename notice by default, belongs to this PR.Related Issue
Related to #6199
osand keepsopenshellas a link without a notice.osonce the Snap Store grants the alias, and closes the issue.Changes
RENAME_WARNING_ON_BY_DEFAULTbecomestrue.os(1)man page say thatopenshellprints the notice, and documentOPENSHELL_SUPPRESS_RENAME_WARNING. The snap section notes that the snap'sopenshellcommand doesn't print it, because the snap still runsbin/osfor that app.OPENSHELL_SUPPRESS_RENAME_WARNING=1for itsopenshell --versioncheck. Package comments describe the notice again.Release Notes
Running the CLI as
openshellnow prints a rename notice to stderr. Switch scripts toos, or setOPENSHELL_SUPPRESS_RENAME_WARNING=1to hide the notice. Snap users don't see it yet.Testing
cargo test -p openshell-cli --bin os renamepasses, includingrename_warning_follows_default_unless_suppressed.openshellsymlink to the debug build prints the notice; with the suppression variable it doesn't.tasks/scripts/test-packaging-assets.shandtasks/scripts/release_formula_test.pypass.Checklist