cmd/app: omit hidden files
Test / Create distribution (push) Successful in 1m4s
Test / Sandbox (push) Successful in 2m58s
Test / ShareFS (push) Successful in 4m1s
Test / Hakurei (push) Successful in 4m11s
Test / Sandbox (race detector) (push) Successful in 5m37s
Test / Hakurei (race detector) (push) Successful in 6m48s
Test / Flake checks (push) Successful in 1m9s

This avoids vim swap files breaking scripts.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-07-07 13:26:58 +09:00
parent 4a42657d88
commit 810b806a15
2 changed files with 19 additions and 23 deletions
+2 -23
View File
@@ -7,7 +7,6 @@ package main
import (
"context"
"errors"
"fmt"
"io"
"log"
"os"
@@ -77,17 +76,7 @@ func main() {
"enter", "Enter mutable state template",
func(args []string) error {
if len(args) != 1 {
dents, err := os.ReadDir(template.String())
if err != nil {
return err
}
for _, dent := range dents {
if !dent.IsDir() {
continue
}
fmt.Println(dent.Name())
}
return nil
return list(template, true)
}
config := hst.Config{
@@ -159,17 +148,7 @@ func main() {
"run", "Start the named application",
func(args []string) error {
if len(args) < 1 {
dents, err := os.ReadDir(base.Append("app").String())
if err != nil {
return err
}
for _, dent := range dents {
if dent.IsDir() {
continue
}
fmt.Println(dent.Name())
}
return nil
return list(base.Append("app"), false)
}
var config *hst.Config