9
9
"path/filepath"
10
10
11
11
"github.com/alecthomas/kong"
12
- "github.com/willabides/bindownloader "
12
+ "github.com/willabides/bindown "
13
13
)
14
14
15
15
var configKongVars = kong.Vars {
@@ -29,7 +29,7 @@ type configCmd struct {
29
29
type configFmtCmd struct {}
30
30
31
31
func (c configFmtCmd ) Run () error {
32
- config , err := bindownloader .LoadConfigFile (cli .Configfile )
32
+ config , err := bindown .LoadConfigFile (cli .Configfile )
33
33
if err != nil {
34
34
return err
35
35
}
@@ -45,7 +45,7 @@ type configUpdateChecksumsCmd struct {
45
45
}
46
46
47
47
func (d * configUpdateChecksumsCmd ) Run (* kong.Context ) error {
48
- config , err := bindownloader .LoadConfigFile (cli .Configfile )
48
+ config , err := bindown .LoadConfigFile (cli .Configfile )
49
49
if err != nil {
50
50
return fmt .Errorf ("error loading config from %q" , cli .Configfile )
51
51
}
@@ -58,7 +58,7 @@ func (d *configUpdateChecksumsCmd) Run(*kong.Context) error {
58
58
}
59
59
60
60
for _ , downloader := range downloaders {
61
- err = downloader .UpdateChecksum (bindownloader .UpdateChecksumOpts {
61
+ err = downloader .UpdateChecksum (bindown .UpdateChecksumOpts {
62
62
DownloaderName : binary ,
63
63
CellarDir : cli .CellarDir ,
64
64
TargetDir : binDir ,
@@ -81,11 +81,11 @@ type configValidateCmd struct {
81
81
}
82
82
83
83
func (d configValidateCmd ) Run (kctx * kong.Context ) error {
84
- config , err := bindownloader .LoadConfigFile (cli .Configfile )
84
+ config , err := bindown .LoadConfigFile (cli .Configfile )
85
85
if err != nil {
86
86
return fmt .Errorf ("error loading config from %q" , cli .Configfile )
87
87
}
88
- tmpDir , err := ioutil .TempDir ("" , "bindownloader " )
88
+ tmpDir , err := ioutil .TempDir ("" , "bindown " )
89
89
if err != nil {
90
90
return err
91
91
}
@@ -119,7 +119,7 @@ func (d configValidateCmd) Run(kctx *kong.Context) error {
119
119
return err
120
120
}
121
121
122
- installOpts := bindownloader .InstallOpts {
122
+ installOpts := bindown .InstallOpts {
123
123
DownloaderName : binary ,
124
124
TargetDir : binDir ,
125
125
Force : true ,
0 commit comments