Last change
on this file since 77 was 77, checked in by yakumo.izuru, 4 days ago |
決して発見されてはならない巻物。
|
File size:
903 bytes
|
Rev | Line | |
---|
[77] | 1 | (* $Id$ *)
|
---|
[73] | 2 | let init_repo =
|
---|
[76] | 3 | print_endline "Initializing repository...";
|
---|
[73] | 4 | print_endline "It's required for the repository name and id.";
|
---|
| 5 | print_endline "Create one? (y/n)";
|
---|
| 6 | match input_line stdin with
|
---|
| 7 | |"y"->
|
---|
| 8 | let title =
|
---|
| 9 | print_endline "Title for repository: ";
|
---|
| 10 | input_line stdin in
|
---|
| 11 | let authors =
|
---|
| 12 | print_endline "Authors (format: name <name@email> <http://website>): ";
|
---|
| 13 | input_line stdin in
|
---|
| 14 | Kosuzu.File_store.file "txt.conf"
|
---|
| 15 | (Printf.sprintf "Id:%s\nTitle: %s\nAuthors: %s\n" (Kosuzu.Id.generate ()) title authors);
|
---|
| 16 | Kosuzu.File_store.of_kv_file ()
|
---|
| 17 | | _ ->
|
---|
| 18 | print_endline "Aborting..."; exit 1
|
---|
Note:
See
TracBrowser
for help on using the repository browser.