-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen_calibre_funcs.go
204 lines (167 loc) · 4.62 KB
/
gen_calibre_funcs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
// Code generated
// DO NOT EDIT.
package cdb
// RemoveFormat represents 'calibredb remove_format'.
type RemoveFormat struct {
*Command
}
// SetMetadata represents 'calibredb set_metadata'.
type SetMetadata struct {
*Command
}
// Field sets the --field [string] flag for 'calibredb set_metadata'.
func (c *SetMetadata) Field(v string) *SetMetadata {
c.SetFlags("--field", v)
return c
}
// ListFields sets the --list_fields flag for 'calibredb set_metadata'.
func (c *SetMetadata) ListFields() *SetMetadata {
c.SetFlags("--list_fields")
return c
}
// SavedSearchesList represents 'calibredb saved_searches list'.
type SavedSearchesList struct {
*Command
}
// SavedSearchesAdd represents 'calibredb saved_searches add'.
type SavedSearchesAdd struct {
*Command
}
// SavedSearchesRemove represents 'calibredb saved_searches remove'.
type SavedSearchesRemove struct {
*Command
}
// Add represents 'calibredb add'.
type Add struct {
*Command
}
// Add sets the --add [string] flag for 'calibredb add'.
func (c *Add) Add(v string) *Add {
c.SetFlags("--add", v)
return c
}
// Automerge sets the --automerge [string] flag for 'calibredb add'.
func (c *Add) Automerge(v string) *Add {
c.SetFlags("--automerge", v)
return c
}
// Duplicates sets the --duplicates flag for 'calibredb add'.
func (c *Add) Duplicates() *Add {
c.SetFlags("--duplicates")
return c
}
// Empty sets the --empty flag for 'calibredb add'.
func (c *Add) Empty() *Add {
c.SetFlags("--empty")
return c
}
// Ignore sets the --ignore [string] flag for 'calibredb add'.
func (c *Add) Ignore(v string) *Add {
c.SetFlags("--ignore", v)
return c
}
// OneBookPerDirectory sets the --one_book_per_directory flag for 'calibredb add'.
func (c *Add) OneBookPerDirectory() *Add {
c.SetFlags("--one_book_per_directory")
return c
}
// Recurse sets the --recurse flag for 'calibredb add'.
func (c *Add) Recurse() *Add {
c.SetFlags("--recurse")
return c
}
// EmbedMetadata represents 'calibredb embed_metadata'.
type EmbedMetadata struct {
*Command
}
// OnlyFormats sets the --only_formats flag for 'calibredb embed_metadata'.
func (c *EmbedMetadata) OnlyFormats() *EmbedMetadata {
c.SetFlags("--only_formats")
return c
}
// Remove represents 'calibredb remove'.
type Remove struct {
*Command
}
// Permanent sets the --permanent flag for 'calibredb remove'.
func (c *Remove) Permanent() *Remove {
c.SetFlags("--permanent")
return c
}
// AddFormat represents 'calibredb add_format'.
type AddFormat struct {
*Command
}
// DontReplace sets the --dont_replace flag for 'calibredb add_format'.
func (c *AddFormat) DontReplace() *AddFormat {
c.SetFlags("--dont_replace")
return c
}
// Export represents 'calibredb export'.
type Export struct {
*Command
}
// DontAsciiize sets the --dont_asciiize flag for 'calibredb export'.
func (c *Export) DontAsciiize() *Export {
c.SetFlags("--dont_asciiize")
return c
}
// DontSaveCover sets the --dont_save_cover flag for 'calibredb export'.
func (c *Export) DontSaveCover() *Export {
c.SetFlags("--dont_save_cover")
return c
}
// DontUpdateMetadata sets the --dont_update_metadata flag for 'calibredb export'.
func (c *Export) DontUpdateMetadata() *Export {
c.SetFlags("--dont_update_metadata")
return c
}
// DontWriteOpf sets the --dont_write_opf flag for 'calibredb export'.
func (c *Export) DontWriteOpf() *Export {
c.SetFlags("--dont_write_opf")
return c
}
// Formats sets the --formats [string] flag for 'calibredb export'.
func (c *Export) Formats(v string) *Export {
c.SetFlags("--formats", v)
return c
}
// ReplaceWhitespace sets the --replace_whitespace flag for 'calibredb export'.
func (c *Export) ReplaceWhitespace() *Export {
c.SetFlags("--replace_whitespace")
return c
}
// SingleDir sets the --single_dir flag for 'calibredb export'.
func (c *Export) SingleDir() *Export {
c.SetFlags("--single_dir")
return c
}
// Template sets the --template [string] flag for 'calibredb export'.
func (c *Export) Template(v string) *Export {
c.SetFlags("--template", v)
return c
}
// Timefmt sets the --timefmt [string] flag for 'calibredb export'.
func (c *Export) Timefmt(v string) *Export {
c.SetFlags("--timefmt", v)
return c
}
// ToDir sets the --to_dir [string] flag for 'calibredb export'.
func (c *Export) ToDir(v string) *Export {
c.SetFlags("--to_dir", v)
return c
}
// ToLowercase sets the --to_lowercase flag for 'calibredb export'.
func (c *Export) ToLowercase() *Export {
c.SetFlags("--to_lowercase")
return c
}
// ShowMetadata represents 'calibredb show_metadata'.
type ShowMetadata struct {
*Command
}
// AsOpf sets the --as_opf flag for 'calibredb show_metadata'.
func (c *ShowMetadata) AsOpf() *ShowMetadata {
c.SetFlags("--as_opf")
return c
}