Authenticate Handler API and SDK, and much more (#183)

This commit is contained in:
Todd Knight authored and GitHub committed 2020-07-14 17:32:47 -04:00
1 parent acce195dcb
commit 28dbcd84bd
89 files changed
+5296 -1943

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
package base
import (
"os"
"github.com/mitchellh/cli"
"golang.org/x/crypto/ssh/terminal"
)
type WatchtowerUI struct {
cli.Ui
Format string
}
var TermWidth uint = 80
func init() {
width, _, err := terminal.GetSize(int(os.Stdin.Fd()))
if err == nil {
TermWidth = uint(width)
}
}