diff options
author | Christian Rocha <christian@rocha.is> | 2020-05-11 16:13:16 -0400 |
---|---|---|
committer | Christian Muehlhaeuser <muesli@gmail.com> | 2020-10-05 13:36:11 +0200 |
commit | b58ee104877a81fee49f38be3637bdee401eddfe (patch) | |
tree | 75e2c891f7a80d7b07a185bd9cd8205ffea71f5b /main.go | |
parent | cd9ee93dcad9cd27035e11359a57658d08207274 (diff) |
Stub out Tea UI: create Charm client and generate keys if necessary
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 { |