aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/app/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/app/main.go')
-rw-r--r--cmd/app/main.go25
1 files changed, 2 insertions, 23 deletions
diff --git a/cmd/app/main.go b/cmd/app/main.go
index 146a5546..00bceb57 100644
--- a/cmd/app/main.go
+++ b/cmd/app/main.go
@@ -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