Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Added env-add command
Browse files Browse the repository at this point in the history
  • Loading branch information
talwat committed May 12, 2022
1 parent c038544 commit a01d723
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions input.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func checkCommand(other string, others []string, index int, args []string) {
case "list-all":
listAll()

case "env-add":
envAdd()

case "re-clone":
reClone()

Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package main

func main() {
// parseInput()
pathAdd()
parseInput()
}
2 changes: 1 addition & 1 deletion setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func setup() {
log(1, "Initialized and updated IndiePKG.")
}

func pathAdd() {
func envAdd() {
confirm("y", "Are you sure you would like to add %s to $PATH? This will fix a lot of issues with packages not being found (y/n)", bolden(home+".local/bin"))

debug = true
Expand Down

0 comments on commit a01d723

Please sign in to comment.