Skip to content

Commit

Permalink
Make cmd/goclone go get-able
Browse files Browse the repository at this point in the history
By changing cmd/goclone to a main package, now anybody can install it with

    go install github.com/imthaghost/goclone/cmd/goclone@latest
  • Loading branch information
tgulacsi committed Mar 12, 2021
1 parent a3163b8 commit 7797d0a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cmd/goclone/clone.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package goclone
package main

import (
"fmt"
Expand Down
5 changes: 5 additions & 0 deletions cmd/goclone/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package main

func main() {
Execute()
}
5 changes: 3 additions & 2 deletions cmd/goclone/root.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package goclone
package main

import (
"github.com/spf13/cobra"
"log"

"github.com/spf13/cobra"
)

var (
Expand Down
9 changes: 0 additions & 9 deletions cmd/main.go

This file was deleted.

0 comments on commit 7797d0a

Please sign in to comment.