Authenticate Handler API and SDK, and much more (#183)
This commit is contained in:
1 parent
acce195dcb
commit
28dbcd84bd
89 files changed
+5296
-1943
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user