Skip to content

Commit 15098c1

Browse files
author
Tony Worm
committed
hof/cli: remove --tui flag from eval command
1 parent ca0bb50 commit 15098c1

File tree

5 files changed

+1
-19
lines changed

5 files changed

+1
-19
lines changed

.hof/shadow/cli/cmd/hof/flags/eval.go

-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ type EvalFlagpole struct {
2626
Resolve bool
2727
Defaults bool
2828
Final bool
29-
Tui bool
3029
}
3130

3231
var EvalFlags EvalFlagpole
@@ -51,7 +50,6 @@ func SetupEvalFlags(fset *pflag.FlagSet, fpole *EvalFlagpole) {
5150
fset.BoolVarP(&(fpole.Resolve), "resolve", "", false, "resolve references in value")
5251
fset.BoolVarP(&(fpole.Defaults), "defaults", "", false, "use default values if not set")
5352
fset.BoolVarP(&(fpole.Final), "final", "", true, "finalize the value")
54-
fset.BoolVarP(&(fpole.Tui), "tui", "", false, "open hof's TUI and browse your CUE")
5553
}
5654

5755
func init() {

cmd/hof/flags/eval.go

-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ type EvalFlagpole struct {
2626
Resolve bool
2727
Defaults bool
2828
Final bool
29-
Tui bool
3029
}
3130

3231
var EvalFlags EvalFlagpole
@@ -51,7 +50,6 @@ func SetupEvalFlags(fset *pflag.FlagSet, fpole *EvalFlagpole) {
5150
fset.BoolVarP(&(fpole.Resolve), "resolve", "", false, "resolve references in value")
5251
fset.BoolVarP(&(fpole.Defaults), "defaults", "", false, "use default values if not set")
5352
fset.BoolVarP(&(fpole.Final), "final", "", true, "finalize the value")
54-
fset.BoolVarP(&(fpole.Tui), "tui", "", false, "open hof's TUI and browse your CUE")
5553
}
5654

5755
func init() {

design/cmds/cue.cue

-7
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,6 @@ EvalCommand: schema.Command & {
165165
Type: "bool"
166166
Default: "true"
167167
Help: "finalize the value"
168-
}, {
169-
Name: "tui"
170-
Long: "tui"
171-
Short: ""
172-
Type: "bool"
173-
Default: "false"
174-
Help: "open hof's TUI and browse your CUE"
175168
}]
176169
}
177170

docs/content/getting-started/cue.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ The enhancements are:
5959

6060
- additional methods for data placement
6161
- increased flexibility for environment variables
62-
- @userfiles() to include any file
63-
- `--tui` flag to open hof's TUI for the commands
62+
- `@userfiles()/--user-files` to include any file
6463

6564

6665
### Hof & CUE Modules

lib/cuecmd/eval.go

-6
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,10 @@ import (
1111
"github.com/hofstadter-io/hof/cmd/hof/flags"
1212
"github.com/hofstadter-io/hof/lib/cuetils"
1313
"github.com/hofstadter-io/hof/lib/runtime"
14-
"github.com/hofstadter-io/hof/lib/tui/cmd"
1514
)
1615

1716
func Eval(args []string, rflags flags.RootPflagpole, cflags flags.EvalFlagpole) error {
1817

19-
if cflags.Tui {
20-
args = append([]string{"eval"}, args...)
21-
return cmd.Cmd(args, rflags)
22-
}
23-
2418
start := time.Now()
2519
R, err := runtime.New(args, rflags)
2620

0 commit comments

Comments
 (0)