Skip to content

Commit 5d9bea2

Browse files
committed
add github action
1 parent 18ec8cb commit 5d9bea2

40 files changed

+156
-115
lines changed

.goreleaser.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod download
7+
# you may remove this if you don't need go generate
8+
- go generate ./...
9+
builds:
10+
- env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- linux
14+
- darwin
15+
- windows
16+
archives:
17+
- replacements:
18+
darwin: Darwin
19+
linux: Linux
20+
windows: Windows
21+
386: 32-bit #i386
22+
amd64: 64-bit #x86_64
23+
format: tar.gz
24+
files:
25+
#- LICENSE.md
26+
#- CHANGELOG.md
27+
#- README.md
28+
#- test_data/*
29+
checksum:
30+
name_template: 'checksums.txt'
31+
snapshot:
32+
name_template: "{{ .Tag }}-next"
33+
changelog:
34+
sort: asc
35+
filters:
36+
exclude:
37+
- '^docs:'
38+
- '^test:'
39+
release:
40+
github:
41+
owner: clindet
42+
name: bget
43+
# You can change the name of the release.
44+
# Default is `{{.Tag}}`
45+
# name_template: "latest"
46+
47+
project_name: bget

_examples/bget_url.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ bget url ${urls} -t 3 -o /tmp/download -g wget --resume
99
bget url -l /tmp/urls.list -o /tmp/download -f -t 3
1010

1111
bget url Miachol/github_demo --github
12-
bget url PapenfussLab/gridss openanno/bget --with-github-assets -t 5 --github
13-
bget url PapenfussLab/gridss openanno/bget --only-github-assets -t 5 --github
14-
bget url PapenfussLab/gridss openanno/bget --with-github-assets --with-assets-versions v2.7.2,v0.1.3 -t 5 --github
12+
bget url PapenfussLab/gridss clindet/bget --with-github-assets -t 5 --github
13+
bget url PapenfussLab/gridss clindet/bget --only-github-assets -t 5 --github
14+
bget url PapenfussLab/gridss clindet/bget --with-github-assets --with-assets-versions v2.7.2,v0.1.3 -t 5 --github
1515

1616
bget --clean
1717

_meta/default.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"baseURL": [
33
"{{HOME}}/.config/bget/meta",
44
"https://hiplot.com.cn/download/bget/_meta",
5-
"https://raw.githubusercontent.com/openanno/bget/master/_meta/"
5+
"https://raw.githubusercontent.com/clindet/bget/master/_meta/"
66
],
77
"entry": [
88
"default.json"

_meta/tools/main.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,13 @@
375375
"Tags": null,
376376
"URL": {
377377
"Linux": [
378-
"https://github.com/openanno/bget/releases/download/{{version}}/bget_linux64"
378+
"https://github.com/clindet/bget/releases/download/{{version}}/bget_linux64"
379379
],
380380
"Mac": [
381-
"https://github.com/openanno/bget/releases/download/{{version}}/bget_osx"
381+
"https://github.com/clindet/bget/releases/download/{{version}}/bget_osx"
382382
],
383383
"Win": [
384-
"https://github.com/openanno/bget/releases/download/{{version}}/bget.exe"
384+
"https://github.com/clindet/bget/releases/download/{{version}}/bget.exe"
385385
]
386386
},
387387
"PostShellCmd": null
@@ -394,13 +394,13 @@
394394
"Tags": null,
395395
"URL": {
396396
"Linux": [
397-
"https://github.com/openanno/bioctl/releases/download/{{version}}/bioctl_linux64"
397+
"https://github.com/clindet/bioctl/releases/download/{{version}}/bioctl_linux64"
398398
],
399399
"Mac": [
400-
"https://github.com/openanno/bioctl/releases/download/{{version}}/bioctl_osx"
400+
"https://github.com/clindet/bioctl/releases/download/{{version}}/bioctl_osx"
401401
],
402402
"Win": [
403-
"https://github.com/openanno/bioctl/releases/download/{{version}}/bioctl.exe"
403+
"https://github.com/clindet/bioctl/releases/download/{{version}}/bioctl.exe"
404404
]
405405
},
406406
"PostShellCmd": null
@@ -413,13 +413,13 @@
413413
"Tags": null,
414414
"URL": {
415415
"Linux": [
416-
"https://github.com/openanno/bioextr/releases/download/{{version}}/bioextr_linux64"
416+
"https://github.com/clindet/bioextr/releases/download/{{version}}/bioextr_linux64"
417417
],
418418
"Mac": [
419-
"https://github.com/openanno/bioextr/releases/download/{{version}}/bioextr_osx"
419+
"https://github.com/clindet/bioextr/releases/download/{{version}}/bioextr_osx"
420420
],
421421
"Win": [
422-
"https://github.com/openanno/bioextr/releases/download/{{version}}/bioextr.exe"
422+
"https://github.com/clindet/bioextr/releases/download/{{version}}/bioextr.exe"
423423
]
424424
},
425425
"PostShellCmd": null

api/cmd/biotools.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cmd
22

33
import (
4-
"github.com/openanno/bget/api/fetch"
5-
"github.com/openanno/bget/api/types"
4+
"github.com/clindet/bget/api/fetch"
5+
"github.com/clindet/bget/api/types"
66
"github.com/spf13/cobra"
77
)
88

api/cmd/cligov.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cmd
22

33
import (
4-
"github.com/openanno/bget/api/fetch"
5-
"github.com/openanno/bget/api/types"
4+
"github.com/clindet/bget/api/fetch"
5+
"github.com/clindet/bget/api/types"
66
"github.com/spf13/cobra"
77
)
88

api/cmd/covid19.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cmd
22

33
import (
4-
"github.com/openanno/bget/api/fetch"
5-
"github.com/openanno/bget/api/types"
4+
"github.com/clindet/bget/api/fetch"
5+
"github.com/clindet/bget/api/types"
66
"github.com/spf13/cobra"
77
)
88

api/cmd/crossRef.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cmd
22

33
import (
4-
"github.com/openanno/bget/api/fetch"
5-
"github.com/openanno/bget/api/types"
4+
"github.com/clindet/bget/api/fetch"
5+
"github.com/clindet/bget/api/types"
66
"github.com/spf13/cobra"
77
)
88

api/cmd/dataset2tools.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cmd
22

33
import (
4-
"github.com/openanno/bget/api/fetch"
5-
"github.com/openanno/bget/api/types"
4+
"github.com/clindet/bget/api/fetch"
5+
"github.com/clindet/bget/api/types"
66
"github.com/spf13/cobra"
77
)
88

api/cmd/gdc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cmd
22

33
import (
4-
"github.com/openanno/bget/api/fetch"
5-
"github.com/openanno/bget/api/types"
4+
"github.com/clindet/bget/api/fetch"
5+
"github.com/clindet/bget/api/types"
66
"github.com/spf13/cobra"
77
)
88

api/cmd/mgrast.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cmd
22

33
import (
4-
"github.com/openanno/bget/api/fetch"
5-
"github.com/openanno/bget/api/types"
4+
"github.com/clindet/bget/api/fetch"
5+
"github.com/clindet/bget/api/types"
66
"github.com/spf13/cobra"
77
)
88

api/cmd/ncbi.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"os"
77
"strings"
88

9-
"github.com/openanno/bget/api/fetch"
10-
"github.com/openanno/bget/api/types"
9+
"github.com/clindet/bget/api/fetch"
10+
"github.com/clindet/bget/api/types"
1111
"github.com/openbiox/ligo/flag"
1212
cio "github.com/openbiox/ligo/io"
1313
"github.com/spf13/cobra"

api/cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"path"
77

8-
"github.com/openanno/bget/api/types"
8+
"github.com/clindet/bget/api/types"
99
cio "github.com/openbiox/ligo/io"
1010
"github.com/openbiox/ligo/stringo"
1111
"github.com/spf13/cobra"

api/cmd/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"path/filepath"
88
"strings"
99

10-
"github.com/openanno/bget/api/types"
10+
"github.com/clindet/bget/api/types"
1111
cvrt "github.com/openbiox/ligo/convert"
1212
cio "github.com/openbiox/ligo/io"
1313
clog "github.com/openbiox/ligo/log"

api/fetch/biotools.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66
"strings"
77

8-
"github.com/openanno/bget/api/types"
8+
"github.com/clindet/bget/api/types"
99
)
1010

1111
const BioToolsHost = "https://bio.tools/api/tool/"

api/fetch/cligov.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66
"strings"
77

8-
"github.com/openanno/bget/api/types"
8+
"github.com/clindet/bget/api/types"
99
)
1010

1111
const CligovHost = "https://clinicaltrials.gov/api/"

api/fetch/covid19.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/openbiox/ligo/stringo"
99

10-
"github.com/openanno/bget/api/types"
10+
"github.com/clindet/bget/api/types"
1111
)
1212

1313
const Covid19Host = "https://api.covid19api.com/"

api/fetch/crossref.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010

1111
"github.com/PuerkitoBio/goquery"
12-
"github.com/openanno/bget/api/types"
12+
"github.com/clindet/bget/api/types"
1313
cio "github.com/openbiox/ligo/io"
1414
cnet "github.com/openbiox/ligo/net"
1515
"github.com/openbiox/ligo/stringo"

api/fetch/dataset2tools.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66
"strings"
77

8-
"github.com/openanno/bget/api/types"
8+
"github.com/clindet/bget/api/types"
99
)
1010

1111
const Dataset2toolsHost = "http://amp.pharm.mssm.edu/datasets2tools/api/search?"

api/fetch/gdc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"code.cloudfoundry.org/bytefmt"
1313
"github.com/olekukonko/tablewriter"
14-
"github.com/openanno/bget/api/types"
14+
"github.com/clindet/bget/api/types"
1515
cio "github.com/openbiox/ligo/io"
1616
cnet "github.com/openbiox/ligo/net"
1717
mpb "github.com/vbauerster/mpb/v5"

api/fetch/mgrast.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/openbiox/ligo/stringo"
1111

12-
"github.com/openanno/bget/api/types"
12+
"github.com/clindet/bget/api/types"
1313
)
1414

1515
const MgRastHost = "http://api.mg-rast.org/"

api/fetch/ncbi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/biogo/ncbi"
1010
"github.com/biogo/ncbi/entrez"
11-
"github.com/openanno/bget/api/types"
11+
"github.com/clindet/bget/api/types"
1212
cnet "github.com/openbiox/ligo/net"
1313
)
1414

api/fetch/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
"github.com/PuerkitoBio/goquery"
1515
xj "github.com/basgys/goxml2json"
16-
"github.com/openanno/bget/api/types"
16+
"github.com/clindet/bget/api/types"
1717
cio "github.com/openbiox/ligo/io"
1818
clog "github.com/openbiox/ligo/log"
1919
cnet "github.com/openbiox/ligo/net"

api/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
package main
1616

1717
import (
18-
"github.com/openanno/bget/api/cmd"
18+
"github.com/clindet/bget/api/cmd"
1919
)
2020

2121
func main() {

chrome/doi.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
glog "github.com/openbiox/ligo/log"
1111
stringo "github.com/openbiox/ligo/stringo"
1212

13-
"github.com/chromedp/chromedp"
1413
cdp "github.com/chromedp/chromedp"
1514
)
1615

@@ -166,7 +165,7 @@ func visibleDownloadTask(url string, ctx context.Context) cdp.Tasks {
166165
return nil
167166
}),
168167
cdp.WaitVisible(`#main-container`, cdp.ByQuery),
169-
chromedp.OuterHTML("html", &body),
168+
cdp.OuterHTML("html", &body),
170169
cdp.ActionFunc(func(context.Context) error {
171170
fmt.Println(body)
172171
return nil

cmd/doi.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313
"strings"
1414
"time"
1515

16-
"github.com/openanno/bget/api/fetch"
17-
"github.com/openanno/bget/api/types"
18-
"github.com/openanno/bget/spider"
16+
"github.com/clindet/bget/api/fetch"
17+
"github.com/clindet/bget/api/types"
18+
"github.com/clindet/bget/spider"
1919
cio "github.com/openbiox/ligo/io"
2020
cnet "github.com/openbiox/ligo/net"
2121
"github.com/openbiox/ligo/slice"
@@ -35,7 +35,7 @@ var printCrossRefMeta bool
3535
var DoiCmd = &cobra.Command{
3636
Use: "doi [doi1 doi2 doi3...]",
3737
Short: "Can be used to access files via DOI.",
38-
Long: `Can be used to access files via DOI. More see here https://github.com/openanno/bget.`,
38+
Long: `Can be used to access files via DOI. More see here https://github.com/clindet/bget.`,
3939
Run: func(cmd *cobra.Command, args []string) {
4040
doiCmdRunOptions(cmd, args)
4141
},

cmd/i.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import (
1717
"time"
1818

1919
"github.com/olekukonko/tablewriter"
20-
"github.com/openanno/bget/spider"
21-
"github.com/openanno/bget/urlpool"
22-
vers "github.com/openanno/bget/versions"
20+
"github.com/clindet/bget/spider"
21+
"github.com/clindet/bget/urlpool"
22+
vers "github.com/clindet/bget/versions"
2323
"github.com/openbiox/ligo/archive"
2424
bexec "github.com/openbiox/ligo/exec"
2525
cio "github.com/openbiox/ligo/io"
@@ -40,7 +40,7 @@ var defaultEntry = map[string][]string{
4040
"baseURL": []string{
4141
"{{HOME}}/.config/bget/meta",
4242
"https://hiplot.com.cn/download/bget/_meta",
43-
"https://raw.githubusercontent.com/openanno/bget/master/_meta/",
43+
"https://raw.githubusercontent.com/clindet/bget/master/_meta/",
4444
},
4545
"entry": []string{"default.json"},
4646
"tools": []string{"tools/main.json"},
@@ -59,7 +59,7 @@ var defaultEntry = map[string][]string{
5959
var KeyCmd = &cobra.Command{
6060
Use: "i [name1 name2 name3...]",
6161
Short: "Can be used to access URLs via a key string.",
62-
Long: `Can be used to access URLs via a key string. e.g. 'item' or 'item@version #releaseVersion', : bwa, reffa-defuse@GRCh38 #97. More see here https://github.com/openanno/bget.`,
62+
Long: `Can be used to access URLs via a key string. e.g. 'item' or 'item@version #releaseVersion', : bwa, reffa-defuse@GRCh38 #97. More see here https://github.com/clindet/bget.`,
6363
Run: func(cmd *cobra.Command, args []string) {
6464
keyCmdRunOptions(cmd, args)
6565
},

0 commit comments

Comments
 (0)