git: 18d62cc6d1d5 - main - net/nats-tui: New port: Terminal UI for the NATS nats tool
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 04 Sep 2026 04:47:37 UTC
The branch main has been updated by olgeni:
URL: https://cgit.FreeBSD.org/ports/commit/?id=18d62cc6d1d538a78d462fc00a41ef10d901fb42
commit 18d62cc6d1d538a78d462fc00a41ef10d901fb42
Author: Jimmy Olgeni <olgeni@FreeBSD.org>
AuthorDate: 2026-09-04 04:20:27 +0000
Commit: Jimmy Olgeni <olgeni@FreeBSD.org>
CommitDate: 2026-09-04 04:47:16 +0000
net/nats-tui: New port: Terminal UI for the NATS nats tool
---
net/Makefile | 1 +
net/nats-tui/Makefile | 36 ++++++++++++++++++++++++++++++++++++
net/nats-tui/distinfo | 5 +++++
net/nats-tui/pkg-descr | 11 +++++++++++
4 files changed, 53 insertions(+)
diff --git a/net/Makefile b/net/Makefile
index 38b216cd1cab..9064a1ecb0fc 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -520,6 +520,7 @@
SUBDIR += nats-streaming-server
SUBDIR += nats-surveyor
SUBDIR += nats-top
+ SUBDIR += nats-tui
SUBDIR += natscli
SUBDIR += nbd-server
SUBDIR += nbdkit
diff --git a/net/nats-tui/Makefile b/net/nats-tui/Makefile
new file mode 100644
index 000000000000..4eccbe2ebd92
--- /dev/null
+++ b/net/nats-tui/Makefile
@@ -0,0 +1,36 @@
+PORTNAME= nats-tui
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0.1
+CATEGORIES= net
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Terminal UI for the NATS nats tool
+WWW= https://github.com/olgeni/nats-tui
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= nats:net/natscli
+
+USES= go:modules
+GO_MODULE= github.com/olgeni/nats-tui
+
+PLIST_FILES= bin/nats-tui \
+ share/bash-completion/completions/nats-tui \
+ share/fish/vendor_completions.d/nats-tui.fish \
+ share/man/man1/nats-tui.1.gz \
+ share/zsh/site-functions/_nats-tui
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/nats-tui.1 ${STAGEDIR}${PREFIX}/share/man/man1/
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions \
+ ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d \
+ ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ ${INSTALL_DATA} ${WRKSRC}/completions/nats-tui.bash \
+ ${STAGEDIR}${PREFIX}/share/bash-completion/completions/nats-tui
+ ${INSTALL_DATA} ${WRKSRC}/completions/nats-tui.fish \
+ ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/nats-tui.fish
+ ${INSTALL_DATA} ${WRKSRC}/completions/_nats-tui \
+ ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_nats-tui
+
+.include <bsd.port.mk>
diff --git a/net/nats-tui/distinfo b/net/nats-tui/distinfo
new file mode 100644
index 000000000000..18e3931684cf
--- /dev/null
+++ b/net/nats-tui/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1788495169
+SHA256 (go/net_nats-tui/nats-tui-v1.0.1/v1.0.1.mod) = 9667ba0a65b3ce24d3e3e42a008416231f22e8a526a9490fbd4f429fc910809f
+SIZE (go/net_nats-tui/nats-tui-v1.0.1/v1.0.1.mod) = 2335
+SHA256 (go/net_nats-tui/nats-tui-v1.0.1/v1.0.1.zip) = b2cb7cd16a5f8ca8f749bcaea2f36b6bd175a2ac04dcd7dac0d879f4ed77739d
+SIZE (go/net_nats-tui/nats-tui-v1.0.1/v1.0.1.zip) = 913473
diff --git a/net/nats-tui/pkg-descr b/net/nats-tui/pkg-descr
new file mode 100644
index 000000000000..c5a69da0dcb3
--- /dev/null
+++ b/net/nats-tui/pkg-descr
@@ -0,0 +1,11 @@
+nats-tui is an interactive front-end to nats(1), the NATS command-line
+tool. It shows the server a nats context points at as a tree: the
+JetStream streams with their consumers, the key-value buckets, the object
+stores and the micro services answering discovery, each opening in a
+dialog editor for its configuration. Messages are published, requested
+and watched live from the same screens.
+
+Nothing is written except through nats itself. Every change is first
+diffed into a plan of the exact nats commands it needs, shown with the
+same quoting a shell would need, confirmed, and only then run, followed
+by a re-read of the server.