@@ -9,13 +9,13 @@ import (
9
9
10
10
var juliaExe = "julia"
11
11
12
- // NPM holds the information for all needed NPM packages .
12
+ // Julia holds the information for all needed Julia modules .
13
13
type Julia struct {
14
14
Modules []string
15
15
Commander Commander
16
16
}
17
17
18
- // GetMissingPackages returns a list of packages which are configured but not installed.
18
+ // GetMissingPackages returns a list of modules which are configured but not installed.
19
19
func (b Julia ) GetMissingPackages () ([]string , error ) {
20
20
missingBottles := []string {}
21
21
stdout , err := b .Commander (juliaExe , "-e" , "import Pkg;Pkg.status()" )
@@ -41,7 +41,7 @@ func (b Julia) GetMissingPackages() ([]string, error) {
41
41
return missingBottles , nil
42
42
}
43
43
44
- // InstallPackages takes a list of packages for installation.
44
+ // InstallPackages takes a list of modules for installation.
45
45
func (b Julia ) InstallPackages (packages []string ) error {
46
46
if len (packages ) == 0 {
47
47
logrus .Info ("no julia modules to install" )
@@ -58,7 +58,7 @@ func (b Julia) InstallPackages(packages []string) error {
58
58
return nil
59
59
}
60
60
61
- // UpdatePackages is currently not implemented .
61
+ // UpdatePackages updates all installed Julia modules .
62
62
func (b Julia ) UpdatePackages () error {
63
63
logrus .Info ("Upgrading julia modules" )
64
64
_ , err := b .Commander (juliaExe , "-e" , "import Pkg;Pkg.update()" )
0 commit comments