]> git.giacomolli.uk - onechat/commit
Separate commands from the entry point
authorAnderson A. Giacomolli <redacted>
Wed, 11 Nov 2026 13:33:16 +0000 (10:33 -0300)
committerAnderson A. Giacomolli <redacted>
Wed, 11 Nov 2026 13:33:16 +0000 (10:33 -0300)
commitf6f0febc2c599ed7bb2a2653215a74d8de1abace
treeeb8cd6662b1cd6e578db444f5e7c120e4e99c55e
parenta50886435ab974bee6f96ddc0d92210549a01221
Separate commands from the entry point

Command parsing and dispatch have their own source file beside their
tests. Help text, build version, output, and returned errors stay the
same. The entry point keeps run, which creates and cancels the signal
context before it calls the command parser.

Issue: 947bddb
command.go [new file with mode: 0644]
main.go