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>
The Snap Store granted the os alias, so snap installs now run the CLI as os. The snap's openshell app runs the CLI through an openshell link and prints the rename notice like the other packages. Snap docs, the snap canary, and install.sh use os. Closes 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
Finishes the snap side of the
osrename, assuming the Snap Store has granted the snap anosalias. Snap installs run the CLI asos, and the snap'sopenshellcommand prints the rename notice like every other package.Do not merge until the Snap Store grants the
osalias. Without it, Store installs have nooscommand and the snap canary fails.Depends on #6206, which depends on #6203: this branch is stacked on both, so the diff includes their commits until they merge. Only the last commit,
feat(snap): run the CLI as os through the granted Store alias, belongs to this PR.Related Issue
Closes #6199
osand keepsopenshellas a link without a notice.Changes
bin/osand anopenshell -> oslink. Theopenshellapp runsbin/openshell, so the CLI sees that name and prints the notice; theosapp keepscommand: bin/osand theosalias. Setup instructions in the description useos.os, and says that locally built snaps, which don't get Store aliases, useopenshell.os./snap/bin/openshell.os, which works with or without the alias and doesn't print the notice.osfor version, gateway, and sandbox checks, and checks thatopenshell --versionprints the notice.openshellapp command, the docs commands, and the installer path.Release Notes
Snap installs now provide the CLI as
os. The snap'sopenshellcommand still works and prints the same rename notice as the other packages.Testing
tasks/scripts/test-packaging-assets.shandtasks/scripts/test-install-sh.shpass.snapcraft.yamlandrelease-canary.ymlparse as YAML.mise run markdown:lintpasses.Checklist