feature: Adds basic backend starting for sshappbackend.

This commit is contained in:
Tera << 8 2025-01-27 07:36:29 -05:00
parent a35602a6f2
commit ede4d528aa
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
8 changed files with 434 additions and 23 deletions

View file

@ -0,0 +1,23 @@
package main
import (
"strings"
"github.com/charmbracelet/log"
)
type WriteLogger struct{}
func (writer WriteLogger) Write(p []byte) (n int, err error) {
logSplit := strings.Split(string(p), "\n")
for _, line := range logSplit {
if line == "" {
continue
}
log.Infof("Process: %s", line)
}
return len(p), err
}