Skip to content

Commit 2a81758

Browse files
committed
support github repo urls as targets
1 parent ef81cb9 commit 2a81758

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/commands/install/github.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ type GitHubRepo struct {
1717
}
1818

1919
func NewGitHubRepo(target string) (repo Repo, err error) {
20+
if strings.HasPrefix(target, "https://github.com/") {
21+
target = strings.Replace(target, "https://github.com/", "github:", 1)
22+
}
23+
2024
if !strings.HasPrefix(target, "github:") {
2125
return repo, InvalidTargetFormat
2226
}

0 commit comments

Comments
 (0)