- Timestamp:
- Apr 21, 2025, 9:47:16 PM (7 weeks ago)
- Location:
- trunk/cmd
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmd/txt/dune
r73 r78 3 3 (public_name txt) 4 4 (modules txt authors convert conversion edit file index last listing 5 new topics html atom gemini peers pu ll recent unfile)5 new topics html atom gemini peers publish pull recent unfile) 6 6 (libraries text_parse.converter text_parse.parsers kosuzu msgpck curl str cmdliner)) -
trunk/cmd/txt/txt.ml
r77 r78 11 11 New.cmd; 12 12 Peers.cmd; 13 Publish.cmd; 13 14 Pull.cmd; 14 15 Recent.cmd; … … 29 30 `P "https://en.touhouwiki.net/wiki/Forbidden_Scrollery" ] 30 31 in 31 Cmd.group (Cmd.info "txt" ~version:" %%VERSION%%" ~doc ~man) ~default:default_cmd subs32 Cmd.group (Cmd.info "txt" ~version:"1.4.5" ~doc ~man) ~default:default_cmd subs 32 33 33 34 let main () = exit (Cmd.eval txt) -
trunk/cmd/txt_init/txt_init.ml
r77 r78 1 (* $Id$ *)2 1 let init_repo = 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 print_endline "Initializing repository..."; 3 print_endline "It's required for the repository name and id."; 4 print_endline "Create one? (y/n)"; 5 match input_line stdin with 6 |"y"-> 7 let title = 8 print_endline "Title for repository: "; 9 input_line stdin in 10 let authors = 11 print_endline "Authors (format: name <name@email> <http://website>): "; 12 input_line stdin in 13 Kosuzu.File_store.file "txt.conf" 14 (Printf.sprintf "Id:%s\nTitle: %s\nAuthors: %s\n" (Kosuzu.Id.generate ()) title authors); 15 Kosuzu.File_store.of_kv_file () 16 | _ -> 17 print_endline "Aborting..."; exit 1
Note:
See TracChangeset
for help on using the changeset viewer.