source: code/trunk/cli/txt.ml@ 67

Last change on this file since 67 was 67, checked in by yakumo.izuru, 8 months ago

Remove the deprecated 'read' subcommand

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 728 bytes
Line 
1open Cmdliner
2
3let subs = [
4 Authors.cmd; (* Done *)
5 Convert.cmd; (* Done *)
6 Edit.cmd; (* Done *)
7 File.cmd; (* Done *)
8 Index.cmd; (* Done *)
9 Last.cmd; (* Done *)
10 Listing.cmd; (* Done *)
11 New.cmd; (* Done *)
12 Peers.cmd; (* Done *)
13 Pull.cmd; (* Done *)
14 Recent.cmd; (* Done *)
15 Topics.cmd; (* Done *)
16 Unfile.cmd; (* Done *)
17 ]
18
19let default_cmd = Term.(ret (const (`Help (`Pager, None))))
20
21let txt =
22 let doc = "Discover, collect and exchange texts" in
23 let man = [
24 `S "CONTACT";
25 `P "<mailto:logarion-dev@chaotic.ninja>"; ]
26 in
27 Cmd.group (Cmd.info "txt" ~version:"%%VERSION%%" ~doc ~man) ~default:default_cmd subs
28
29let main () = exit (Cmd.eval txt)
30let () = main ()
Note: See TracBrowser for help on using the repository browser.