diff --git a/.hof/shadow/cli/cmd/hof/flags/eval.go b/.hof/shadow/cli/cmd/hof/flags/eval.go index 129840c44..c95c0d815 100644 --- a/.hof/shadow/cli/cmd/hof/flags/eval.go +++ b/.hof/shadow/cli/cmd/hof/flags/eval.go @@ -26,7 +26,6 @@ type EvalFlagpole struct { Resolve bool Defaults bool Final bool - Tui bool } var EvalFlags EvalFlagpole @@ -51,7 +50,6 @@ func SetupEvalFlags(fset *pflag.FlagSet, fpole *EvalFlagpole) { fset.BoolVarP(&(fpole.Resolve), "resolve", "", false, "resolve references in value") fset.BoolVarP(&(fpole.Defaults), "defaults", "", false, "use default values if not set") fset.BoolVarP(&(fpole.Final), "final", "", true, "finalize the value") - fset.BoolVarP(&(fpole.Tui), "tui", "", false, "open hof's TUI and browse your CUE") } func init() { diff --git a/cmd/hof/flags/eval.go b/cmd/hof/flags/eval.go index 129840c44..c95c0d815 100644 --- a/cmd/hof/flags/eval.go +++ b/cmd/hof/flags/eval.go @@ -26,7 +26,6 @@ type EvalFlagpole struct { Resolve bool Defaults bool Final bool - Tui bool } var EvalFlags EvalFlagpole @@ -51,7 +50,6 @@ func SetupEvalFlags(fset *pflag.FlagSet, fpole *EvalFlagpole) { fset.BoolVarP(&(fpole.Resolve), "resolve", "", false, "resolve references in value") fset.BoolVarP(&(fpole.Defaults), "defaults", "", false, "use default values if not set") fset.BoolVarP(&(fpole.Final), "final", "", true, "finalize the value") - fset.BoolVarP(&(fpole.Tui), "tui", "", false, "open hof's TUI and browse your CUE") } func init() { diff --git a/design/cmds/cue.cue b/design/cmds/cue.cue index dda3d0198..45e3ff013 100644 --- a/design/cmds/cue.cue +++ b/design/cmds/cue.cue @@ -165,13 +165,6 @@ EvalCommand: schema.Command & { Type: "bool" Default: "true" Help: "finalize the value" - }, { - Name: "tui" - Long: "tui" - Short: "" - Type: "bool" - Default: "false" - Help: "open hof's TUI and browse your CUE" }] } diff --git a/docs/content/getting-started/cue.md b/docs/content/getting-started/cue.md index 94b9a21e8..a2398f6c3 100644 --- a/docs/content/getting-started/cue.md +++ b/docs/content/getting-started/cue.md @@ -59,8 +59,7 @@ The enhancements are: - additional methods for data placement - increased flexibility for environment variables -- @userfiles() to include any file -- `--tui` flag to open hof's TUI for the commands +- `@userfiles()/--user-files` to include any file ### Hof & CUE Modules diff --git a/lib/cuecmd/eval.go b/lib/cuecmd/eval.go index a807831f7..16ea93379 100644 --- a/lib/cuecmd/eval.go +++ b/lib/cuecmd/eval.go @@ -11,16 +11,10 @@ import ( "github.com/hofstadter-io/hof/cmd/hof/flags" "github.com/hofstadter-io/hof/lib/cuetils" "github.com/hofstadter-io/hof/lib/runtime" - "github.com/hofstadter-io/hof/lib/tui/cmd" ) func Eval(args []string, rflags flags.RootPflagpole, cflags flags.EvalFlagpole) error { - if cflags.Tui { - args = append([]string{"eval"}, args...) - return cmd.Cmd(args, rflags) - } - start := time.Now() R, err := runtime.New(args, rflags)