summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorChristian Rocha <christian@rocha.is>2020-05-11 16:13:16 -0400
committerChristian Muehlhaeuser <muesli@gmail.com>2020-10-05 13:36:11 +0200
commitb58ee104877a81fee49f38be3637bdee401eddfe (patch)
tree75e2c891f7a80d7b07a185bd9cd8205ffea71f5b /main.go
parentcd9ee93dcad9cd27035e11359a57658d08207274 (diff)
Stub out Tea UI: create Charm client and generate keys if necessary
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.go b/main.go
index d7fda91..da73581 100644
--- a/main.go
+++ b/main.go
@@ -16,6 +16,7 @@ import (
"golang.org/x/crypto/ssh/terminal"
"github.com/charmbracelet/glamour"
+ "github.com/charmbracelet/glow/ui"
)
var (
@@ -149,7 +150,11 @@ func execute(cmd *cobra.Command, args []string) error {
validateOptions(cmd)
if len(args) == 0 {
- return executeArg(cmd, "", os.Stdout)
+ //return executeArg(cmd, "", os.Stdout)
+ if err := ui.NewProgram().Start(); err != nil {
+ fmt.Println(err)
+ os.Exit(1)
+ }
}
for _, arg := range args {