Reorganize project into standard root layout

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
GitHub Copilot
2026-02-14 22:40:29 +00:00
parent 374b69bd7e
commit 516f1b1946
62 changed files with 34 additions and 32 deletions
+15
View File
@@ -0,0 +1,15 @@
package main
import (
"fmt"
"os"
"github.com/rcarmo/webterm-go-port/webterm"
)
func main() {
if err := webterm.RunCLI(os.Args[1:]); err != nil {
_, _ = fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
+13
View File
@@ -0,0 +1,13 @@
package main
import (
"os"
"testing"
)
func TestMainVersionFlag(t *testing.T) {
orig := os.Args
defer func() { os.Args = orig }()
os.Args = []string{"webterm", "-v"}
main()
}