Author: Kevin Schoon [kevinschoon@gmail.com]
Hash: 2e33dd3cd977ac99abbfef9e530c7ad6d3e8381a
Timestamp: Thu, 28 Jan 2021 18:53:05 +0000 (3 years ago)

+0 -104 +/-3 browse
rm excessive mli
1diff --git a/lib/cmd.mli b/lib/cmd.mli
2deleted file mode 100644
3index 1bbcfaa..0000000
4--- a/lib/cmd.mli
5+++ /dev/null
6 @@ -1 +0,0 @@
7- val run : unit
8 diff --git a/lib/config.mli b/lib/config.mli
9deleted file mode 100644
10index bd693c5..0000000
11--- a/lib/config.mli
12+++ /dev/null
13 @@ -1,74 +0,0 @@
14- open Base
15-
16- module ListStyle : sig
17- type t = [ `Fixed | `Wide | `Simple ]
18-
19- val of_string : string -> t
20-
21- val to_string : t -> string
22- end
23-
24- module Encoding : sig
25- type t = [ `Json | `Yaml | `Raw ]
26-
27- val of_string : string -> t
28-
29- val to_string : t -> string
30- end
31-
32- module Column : sig
33- type t = [ `Title | `Description | `Tags | `WordCount | `Slug ]
34-
35- val of_string : string -> t
36-
37- val to_string : t -> string
38- end
39-
40- module Key : sig
41- type t =
42- [ `StateDir
43- | `LockFile
44- | `Editor
45- | `OnModification
46- | `ListStyle
47- | `Encoding
48- | `ColumnList ]
49-
50- val all : t list
51-
52- val of_string : string -> t
53-
54- val to_string : t -> string
55- end
56-
57- type t
58- (** configuration for the note cli *)
59-
60- type value
61- (** a configuration value *)
62-
63- val to_string : t -> string
64- (** convert the configuration into a string *)
65-
66- val load : t
67- (** load the configuration from disk *)
68-
69- val save : t -> unit
70- (** save the configuration to disk *)
71-
72- val value_to_string : value -> string
73- (** convert a value to string form *)
74-
75- val value_of_string : Key.t -> string -> value
76-
77- val get : t -> Key.t -> value
78- (** get a single value by key *)
79-
80- val set : t -> Key.t -> value -> t
81- (** set a configuration value *)
82-
83- val get_string : t -> Key.t -> string
84- (** get a single value as a string by key *)
85-
86- val get_string_opt : t -> Key.t -> string option
87- (** get a string option by key *)
88 diff --git a/lib/slug.mli b/lib/slug.mli
89deleted file mode 100644
90index dc7c456..0000000
91--- a/lib/slug.mli
92+++ /dev/null
93 @@ -1,29 +0,0 @@
94- type t
95- (**
96-
97- A slug is a human readable naming convention for storing note files in a directory.
98-
99- The resulting directory will look something like below:
100-
101- /home/kevin/.local/share/note/
102- ├── note-20200820-0.md
103- ├── note-20200820-1.md
104- └── note-20200821-0.md
105-
106- Each slug has a prefix, the current date, and a number incremented from zero
107- indicating the number of notes that were taken on that date.
108-
109- NOTE: Epoch time would be simpler and more accurate but less friendly for reading.
110- *)
111-
112- val get_path : t -> string
113- (** return the absolute path of the slug *)
114-
115- val to_string : t -> string
116- (** convert a slug into a string *)
117-
118- val load : string -> t list
119- (** read slugs from the given path *)
120-
121- val next : string -> t
122- (** create a new slug *)