forked from lajosdeme/xcclear
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.go
41 lines (32 loc) · 766 Bytes
/
config.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
39
40
41
package main
import "os"
func home() string {
return os.Getenv("HOME")
}
func devDir() string {
return home() + "/Library/Developer/"
}
func xcodeDir() string {
return devDir() + "Xcode/"
}
func DerivedData() string {
return xcodeDir() + "DerivedData"
}
func Archives() string {
return xcodeDir() + "Archives"
}
func DeviceSupport() string {
return xcodeDir() + "iOS DeviceSupport"
}
func WatchOSSupport() string {
return xcodeDir() + "watchOS DeviceSupport"
}
func CoreSimulator() string {
return devDir() + "CoreSimulator"
}
func XcCache() string {
return home() + "/Library/Caches/com.apple.dt.Xcode"
}
func AllDirectories() []string {
return []string{DerivedData(), Archives(), DeviceSupport(), WatchOSSupport(), CoreSimulator(), XcCache()}
}