Skip to content

Commit

Permalink
[EASY] Add indicator that nix is installing packages upon calling she…
Browse files Browse the repository at this point in the history
…ll (#2637)

## Summary
Add indicator that nix is installing packages upon calling shell

## How was it tested?
`go build`
`devbox shell`

## Is this change backwards-compatible?
Yes
  • Loading branch information
LucilleH authored Aug 26, 2022
1 parent fc170c7 commit e4e9b3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions boxcli/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
package boxcli

import (
"fmt"

"github.com/pkg/errors"
"github.com/spf13/cobra"
"go.jetpack.io/devbox"
Expand All @@ -27,6 +29,7 @@ func runShellCmd(cmd *cobra.Command, args []string) error {
return errors.WithStack(err)
}

fmt.Println("Installing nix packages. This may take a while...")
// TODO: If we're inside a devbox shell already, don't re-run.
return box.Shell()
}

0 comments on commit e4e9b3b

Please sign in to comment.