summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorkaa <kaa@disroot.org>2025-08-30 22:03:37 -0700
committerkaa <kaa@disroot.org>2025-08-30 22:03:37 -0700
commitf38b4ad8b7543b088c5c0c4018285127ad4f4680 (patch)
treea2fd9587a98b8605f5416ea69048f13937fca510 /cmd
parenta333aeef611a099827c4e261a3fce7e541eb1f5f (diff)
Basic neatroff
Diffstat (limited to 'cmd')
-rw-r--r--cmd/pgset/main.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/cmd/pgset/main.go b/cmd/pgset/main.go
index f871f2b..b58a85e 100644
--- a/cmd/pgset/main.go
+++ b/cmd/pgset/main.go
@@ -7,6 +7,7 @@ import (
"os"
"pgset/lib/parse"
"strings"
+ "pgset/lib/translate"
)
func main() {
@@ -22,8 +23,11 @@ func main() {
if err != nil {
log.Fatal(err)
}
- fmt.Println(document[0])
- //neatroff(tree)
- //tex(tree)
- //sile(tree)
+ if document == nil {
+ fmt.Println("o");
+ }
+ err = translate.Translate(document, "Neatroff", os.Stdout)
+ if err != nil {
+ log.Fatal("wow")
+ }
}