-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add lib.install
command
#4953
Conversation
import Unison.Codebase.Editor.Git (withStatus) | ||
import Unison.Codebase.Editor.Git qualified as Git | ||
import Unison.Codebase.Editor.RemoteRepo (ReadGitRemoteNamespace) | ||
import Unison.Codebase.GitError qualified as GitError | ||
import Unison.Codebase.Path | ||
import Unison.Codebase.Path qualified as Path | ||
import Unison.Codebase.SqliteCodebase.Conversions qualified as Cv | ||
import Unison.Codebase.SqliteCodebase.Operations qualified as SqliteCodebase.Operations | ||
import Unison.Codebase.SyncMode (SyncMode) | ||
import Unison.Codebase.Type | ||
( Codebase (..), | ||
GitError (GitCodebaseError), | ||
PushGitBranchOpts (..), | ||
SyncToDir, | ||
) | ||
import Unison.Codebase.Type (Codebase (..), GitError) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a high level description to the PR about what is happening with these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I guess I found it in the commit message, or is there more to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SyncMode
argument was totally ignored, so debug.pull-exhaustive
didn't do anything special.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome!
I'm getting a PR going for share to update the install modals to this new command 🎉. |
Thank you! |
Here's the PR: unisoncomputing/share-ui#6 |
Overview
Edit: the help now looks like this
This PR adds a
lib.install
(alias:install.lib
) command to replacepull
for installing a dependency intolib
.It's different than
pull
in a couple ways:pull @unison/base/releases/4.0.0 lib.base_4_0_0
just becomeslib.install @unison/base/releases/4.0.0
, and the name is picked automatically (see screenshot).Test coverage
I tested this manually