test
This commit is contained in:
5
main.go
5
main.go
@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"flag"
|
"flag"
|
||||||
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
@ -262,12 +263,16 @@ const (
|
|||||||
func initServer() {
|
func initServer() {
|
||||||
s, err := wish.NewServer(
|
s, err := wish.NewServer(
|
||||||
wish.WithAddress(net.JoinHostPort(host, port)),
|
wish.WithAddress(net.JoinHostPort(host, port)),
|
||||||
|
wish.WithHostKeyPath(".ssh/id_ed25519"),
|
||||||
wish.WithMiddleware(
|
wish.WithMiddleware(
|
||||||
bubbletea.Middleware(teaHandler),
|
bubbletea.Middleware(teaHandler),
|
||||||
activeterm.Middleware(), // Bubble Tea apps usually require a PTY.
|
activeterm.Middleware(), // Bubble Tea apps usually require a PTY.
|
||||||
logging.Middleware(),
|
logging.Middleware(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
fmt.Println(os.Getenv("TERM"))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Could not start server", "error", err)
|
log.Error("Could not start server", "error", err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user