Skip to content

Commit 284fe0f

Browse files
committed
chore: updates
1 parent 8ff69e7 commit 284fe0f

9 files changed

+24
-16
lines changed

Taskfile.yml

+7
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ tasks:
1818
- surgeon
1919
- ./misc/index.sh
2020
silent: true
21+
22+
23+
index:
24+
cmds:
25+
- echo "Creating index..."
26+
- ./misc/index.sh
27+
silent: true

cli/cmd/forms.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import (
88

99
func launchForm(appName string, description string, accessible bool) (bool, error) {
1010
var proceed bool
11+
1112
form := huh.NewForm(
13+
1214
huh.NewGroup(huh.NewNote().
1315
Title("Incus Scripts").
1416
Description(fmt.Sprintf("Launch a _%s_ instance\n\n%s\n\n", appName, description)),
@@ -29,12 +31,13 @@ func launchForm(appName string, description string, accessible bool) (bool, erro
2931
}
3032
func advancedForm(accessible bool) (bool, error) {
3133
var advanced bool
34+
3235
form := huh.NewForm(
3336
huh.NewGroup(
3437
huh.NewConfirm().
35-
Title("Use Default Settings?").
36-
Affirmative("No").
37-
Negative("Yes").
38+
Title("Use Advanced Settings?").
39+
Affirmative("Yes").
40+
Negative("No").
3841
Value(&advanced),
3942
),
4043
).WithAccessible(accessible)

cli/cmd/launch.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,8 @@ func (c *cmdLaunch) launch(app string, instanceName string) error {
567567
}
568568

569569
func disableSecureBoot(imagename string) bool {
570-
if strings.Contains(imagename, "archlinux") {
571-
return true
572-
}
573-
return false
570+
return strings.Contains(imagename, "archlinux")
571+
574572
}
575573

576574
func getAppMetadata(app string) (*Application, error) {

json/alpine-it-tools.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"resources": {
2121
"cpu": 1,
2222
"ram": 256,
23-
"hdd": 0.2,
23+
"hdd": 1,
2424
"os": "alpine",
2525
"version": "3.21"
2626
}

json/alpine.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"resources": {
2121
"cpu": 1,
2222
"ram": 512,
23-
"hdd": 0.1,
23+
"hdd": 1,
2424
"os": "alpine",
2525
"version": "3.21"
2626
}

json/ct-index.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
"resources": {
245245
"cpu": 1,
246246
"ram": 256,
247-
"hdd": 0.2,
247+
"hdd": 1,
248248
"os": "alpine",
249249
"version": "3.21"
250250
}
@@ -278,7 +278,7 @@
278278
"resources": {
279279
"cpu": 1,
280280
"ram": 512,
281-
"hdd": 0.1,
281+
"hdd": 1,
282282
"os": "alpine",
283283
"version": "3.21"
284284
}
@@ -8548,7 +8548,7 @@
85488548
"resources": {
85498549
"cpu": 1,
85508550
"ram": 256,
8551-
"hdd": 0.5,
8551+
"hdd": 1,
85528552
"os": "alpine",
85538553
"version": "3.21"
85548554
}
@@ -9131,7 +9131,7 @@
91319131
"resources": {
91329132
"cpu": 1,
91339133
"ram": 256,
9134-
"hdd": 0.3,
9134+
"hdd": 1,
91359135
"os": "alpine",
91369136
"version": "3.21"
91379137
}

json/openwrt.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"resources": {
2121
"cpu": 1,
2222
"ram": 256,
23-
"hdd": 0.5,
23+
"hdd": 1,
2424
"os": null,
2525
"version": null
2626
}

json/vaultwarden.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"resources": {
3232
"cpu": 1,
3333
"ram": 256,
34-
"hdd": 0.5,
34+
"hdd": 1,
3535
"os": "alpine",
3636
"version": "3.21"
3737
}

json/zigbee2mqtt.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"resources": {
3232
"cpu": 1,
3333
"ram": 256,
34-
"hdd": 0.3,
34+
"hdd": 1,
3535
"os": "alpine",
3636
"version": "3.21"
3737
}

0 commit comments

Comments
 (0)