Add decode subcommand

Accepts decimal or 0x-hex GID input. gid=0 is rendered as the
literal 'empty'; non-zero values print the three components in a
parse-stable space-separated key=value form.
This commit is contained in:
Axel Meyer
2026-05-23 13:47:39 +02:00
parent 7316ebc7dd
commit cef9c5c9a2
3 changed files with 101 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ function run(argv, { out, err }) {
}
const handlers = {
encode: require('./commands/encode'),
decode: require('./commands/decode'),
};
const handler = handlers[head];
if (!handler) {