source: code/trunk/cmd/txt/txt.ml@ 79

Last change on this file since 79 was 78, checked in by Izuru Yakumo, 7 weeks ago

Bring back the publish subcommand (adapted)

File size: 851 bytes
RevLine 
[73]1open Cmdliner
2
3let subs = [
4 Authors.cmd;
5 Convert.cmd;
6 Edit.cmd;
7 File.cmd;
8 Index.cmd;
9 Last.cmd;
10 Listing.cmd;
11 New.cmd;
12 Peers.cmd;
[78]13 Publish.cmd;
[73]14 Pull.cmd;
15 Recent.cmd;
16 Topics.cmd;
17 Unfile.cmd;
18 ]
19
20let default_cmd = Term.(ret (const (`Help (`Pager, None))))
21
22let txt =
23 let doc = "Discover, collect and exchange texts" in
24 let man = [
25 `S Manpage.s_authors;
26 `P "orbifx <mailto:fox@orbitalfox.eu>";
[77]27 `P "Izuru Yakumo <mailto:eternal-servant@yakumo.dev>";
[73]28 `S Manpage.s_see_also;
29 `P "This program is named after Kosuzu Motoori from Touhou Suzunaan: Forbidden Scrollery";
30 `P "https://en.touhouwiki.net/wiki/Forbidden_Scrollery" ]
31 in
[78]32 Cmd.group (Cmd.info "txt" ~version:"1.4.5" ~doc ~man) ~default:default_cmd subs
[73]33
34let main () = exit (Cmd.eval txt)
35let () = main ()
Note: See TracBrowser for help on using the repository browser.