Skip to content

Commit

Permalink
fix after review
Browse files Browse the repository at this point in the history
Signed-off-by: Horiodino <[email protected]>
  • Loading branch information
Horiodino committed Jun 11, 2024
1 parent be8b642 commit 962f855
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions cmd/direnv/direnv.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"errors"
"fmt"
"os"
"os/exec"
"regexp"
"strings"

Expand Down Expand Up @@ -34,12 +33,6 @@ var Direnv = &cobra.Command{
os.Exit(1)
}
}

cmD := exec.Command("direnv", "allow")
err = cmD.Run()
if err != nil {
os.Exit(1)
}
},
}

Expand Down Expand Up @@ -69,7 +62,6 @@ func generateEnvrc() error {

_, err = file.WriteString("\nuse flake bsf/.")
if err != nil {
fmt.Println(styles.ErrorStyle.Render("", err.Error()))
return err
}
return nil
Expand Down Expand Up @@ -107,7 +99,6 @@ func fetchGitignore() error {
file, err := os.OpenFile(".gitignore", os.O_APPEND|os.O_WRONLY, 0644)
_, err = file.WriteString("\n.envrc")
if err != nil {
fmt.Println(styles.ErrorStyle.Render("", err.Error()))
return err
}
}
Expand Down Expand Up @@ -151,12 +142,6 @@ func setDIrenv(args string) error {
return err
}

cmd := exec.Command("direnv", "allow")
err = cmd.Run()
if err != nil {
return err
}

return nil
}

Expand Down

0 comments on commit 962f855

Please sign in to comment.