Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Mar 15, 2024
1 parent 45ffaa6 commit a14c8e4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/gwurl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ var (
)

func main() {
taggedUrlFlag := flag.String("url", ":)", "parsing target")
appidFlag := flag.String("app-id", "{GUID}", "print the version of this program")
appVerflag := flag.String("app-version", "42.0.42", "print the version of this program")
versionFlag := flag.Bool("version", false, "print the version of this program")

const usage = `Usage: gwurl [OPTIONS] [URL]
$ gwurl "$Windows_Installer_URL_That_Provided_By_Google"
$ gwurl --url "$Windows_Installer_URL_That_Provided_By_Google"
$ gwurl app-id 'DDCCD2A9-025E-4142-BCEB-F467B88CF830'
$ gwurl --version
`

Expand All @@ -50,7 +54,8 @@ $ gwurl --version
return
}

taggedUrl := os.Args[1]
taggedUrl := *taggedUrlFlag
if taggedUrl != ""
parsed, err := taggedurl.ParseTaggedURL(taggedUrl)

Check failure on line 59 in cmd/gwurl/main.go

View workflow job for this annotation

GitHub Actions / build

syntax error: cannot use parsed, err := taggedurl.ParseTaggedURL(taggedUrl) as value

Check failure on line 59 in cmd/gwurl/main.go

View workflow job for this annotation

GitHub Actions / test

syntax error: cannot use parsed, err := taggedurl.ParseTaggedURL(taggedUrl) as value
if err != nil {
log.Fatalf("Cannot parse given URL: %+v", err)
Expand Down

0 comments on commit a14c8e4

Please sign in to comment.