Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/ide/jetbrains/clion.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const (
var CLionOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "latest",
Description: versionOptionDescription,
Default: versionOptionDefault,
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
Description: downloadArm64OptionDescription,
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
Description: downloadAmd64OptionDescription,
},
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/ide/jetbrains/dataspell.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const (
var DataSpellOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "latest",
Description: versionOptionDescription,
Default: versionOptionDefault,
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
Description: downloadArm64OptionDescription,
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
Description: downloadAmd64OptionDescription,
},
}

Expand Down
7 changes: 6 additions & 1 deletion pkg/ide/jetbrains/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ const (
VersionOption = "VERSION"
DownloadAmd64Option = "DOWNLOAD_AMD64"
DownloadArm64Option = "DOWNLOAD_ARM64"

versionOptionDescription = "The version for the binary"
versionOptionDefault = "latest"
downloadArm64OptionDescription = "The download url for the arm64 server binary"
downloadAmd64OptionDescription = "The download url for the amd64 server binary"
)

func getLatestDownloadURL(code string, platform string) string {
Expand All @@ -42,7 +47,7 @@ func getDownloadURLs(
) (string, string) {
version := options.GetValue(values, VersionOption)
var amd64Download, arm64Download string
if version == "latest" {
if version == versionOptionDefault {
amd64Download = getLatestDownloadURL(productCode, "linux")
arm64Download = getLatestDownloadURL(productCode, "linuxARM64")
} else {
Expand Down
8 changes: 4 additions & 4 deletions pkg/ide/jetbrains/goland.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const (
var GolandOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "latest",
Description: versionOptionDescription,
Default: versionOptionDefault,
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
Description: downloadArm64OptionDescription,
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
Description: downloadAmd64OptionDescription,
},
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/ide/jetbrains/intellij.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const (
var IntellijOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "latest",
Description: versionOptionDescription,
Default: versionOptionDefault,
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
Description: downloadArm64OptionDescription,
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
Description: downloadAmd64OptionDescription,
},
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/ide/jetbrains/phpstorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const (
var PhpStormOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "latest",
Description: versionOptionDescription,
Default: versionOptionDefault,
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
Description: downloadArm64OptionDescription,
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
Description: downloadAmd64OptionDescription,
},
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/ide/jetbrains/pycharm.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const (
var PyCharmOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "latest",
Description: versionOptionDescription,
Default: versionOptionDefault,
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
Description: downloadArm64OptionDescription,
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
Description: downloadAmd64OptionDescription,
},
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/ide/jetbrains/rider.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const (
var RiderOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "latest",
Description: versionOptionDescription,
Default: versionOptionDefault,
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
Description: downloadArm64OptionDescription,
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
Description: downloadAmd64OptionDescription,
},
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/ide/jetbrains/rubymine.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const (
var RubyMineOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "latest",
Description: versionOptionDescription,
Default: versionOptionDefault,
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
Description: downloadArm64OptionDescription,
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
Description: downloadAmd64OptionDescription,
},
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/ide/jetbrains/rustrover.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const (
var RustRoverOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "latest",
Description: versionOptionDescription,
Default: versionOptionDefault,
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
Description: downloadArm64OptionDescription,
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
Description: downloadAmd64OptionDescription,
},
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/ide/jetbrains/webstorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const (
var WebStormOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "latest",
Description: versionOptionDescription,
Default: versionOptionDefault,
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
Description: downloadArm64OptionDescription,
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
Description: downloadAmd64OptionDescription,
},
}

Expand Down
Loading