@@ -194,32 +194,6 @@ func parseNixProfileListItem(line string) (*NixProfileListItem, error) {
194
194
}, nil
195
195
}
196
196
197
- // TODO drop the Profile prefix from this name.
198
- type ProfileInstallPackageArgs struct {
199
- CustomStepMessage string
200
- Lockfile * lock.File
201
- Package string
202
- ProfilePath string
203
- Writer io.Writer
204
- }
205
-
206
- // ProfileInstallPackage installs a Devbox package into a profile.
207
- // TODO drop the Profile prefix from this name.
208
- func ProfileInstallPackage (ctx context.Context , args * ProfileInstallPackageArgs ) error {
209
- pkg := devpkg .PackageFromStringWithDefaults (args .Package , args .Lockfile )
210
- installable , err := pkg .Installable ()
211
- if err != nil {
212
- return err
213
- }
214
- return ProfileInstall (ctx , & ProfileInstallArgs {
215
- CustomStepMessage : args .CustomStepMessage ,
216
- Installable : installable ,
217
- PackageName : args .Package ,
218
- ProfilePath : args .ProfilePath ,
219
- Writer : args .Writer ,
220
- })
221
- }
222
-
223
197
// TODO drop the Profile prefix from this name.
224
198
type ProfileInstallArgs struct {
225
199
CustomStepMessage string
@@ -230,6 +204,8 @@ type ProfileInstallArgs struct {
230
204
Writer io.Writer
231
205
}
232
206
207
+ // ProfileInstall installs a package into a profile. Its a convenience wrapper around nix.ProfileInstall
208
+ // that can print nicer output when installing multiple packages.
233
209
// TODO drop the Profile prefix from this name.
234
210
func ProfileInstall (ctx context.Context , args * ProfileInstallArgs ) error {
235
211
stepMsg := args .PackageName
0 commit comments