-
Notifications
You must be signed in to change notification settings - Fork 318
/
clion.go
38 lines (34 loc) · 1.13 KB
/
clion.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package jetbrains
import (
"github.com/loft-sh/devpod/pkg/config"
"github.com/loft-sh/devpod/pkg/ide"
"github.com/loft-sh/log"
)
const (
CLionDownloadAmd64Template = "https://download.jetbrains.com/cpp/CLion-%s.tar.gz"
CLionDownloadArm64Template = "https://download.jetbrains.com/cpp/CLion-%s-aarch64.tar.gz"
)
var CLionOptions = ide.Options{
VersionOption: {
Name: VersionOption,
Description: "The version for the binary",
Default: "2023.2.2",
},
DownloadArm64Option: {
Name: DownloadArm64Option,
Description: "The download url for the arm64 server binary",
},
DownloadAmd64Option: {
Name: DownloadAmd64Option,
Description: "The download url for the amd64 server binary",
},
}
func NewCLionServer(userName string, values map[string]config.OptionValue, log log.Logger) *GenericJetBrainsServer {
amd64Download, arm64Download := getDownloadURLs(CLionOptions, values, CLionDownloadAmd64Template, CLionDownloadArm64Template)
return newGenericServer(userName, &GenericOptions{
ID: "clion",
DisplayName: "CLion",
DownloadAmd64: amd64Download,
DownloadArm64: arm64Download,
}, log)
}