CLI interface to medialist (fossil mirror)
Révision | 30ced427ac1b0f30aacfa066d4ec901f89771227 (tree) |
---|---|
l'heure | 2023-03-16 15:45:51 |
Auteur | mio <stigma@disr...> |
Commiter | mio |
Update manpage to include 'import' and 'export' command. Prepare for version 0.4.
FossilOrigin-Name: 981787a07e271f740bd51ca47a9e08ab0b1cd8848772fd68ebc68ea35d0e7d78
@@ -1,4 +1,4 @@ | ||
1 | -.TH MEDIALIST-CLI 1 "2022-02-18" "0.3" "MediaList Suite" | |
1 | +.TH MEDIALIST-CLI 1 "2023-03-16" "0.4" "MediaList CLI" | |
2 | 2 | .SH NAME |
3 | 3 | medialist-cli \- CLI for MediaList |
4 | 4 | .SH SYNOPSIS |
@@ -9,7 +9,8 @@ medialist-cli | ||
9 | 9 | .OP command_options... |
10 | 10 | .SH DESCRIPTION |
11 | 11 | medialist-cli acts as the command-line interface for the MediaList suite of |
12 | -programs. | |
12 | +programs. With it you can create an update lists to help keep track of which | |
13 | +books you are reading, or which movies/tv shows you are watching. | |
13 | 14 | .SH OPTIONS |
14 | 15 | .TP |
15 | 16 | --help |
@@ -61,6 +62,55 @@ is provided, then the corresponding item is deleted from the list. In this case, | ||
61 | 62 | the list itself isn't deleted. |
62 | 63 | .RE |
63 | 64 | .TP |
65 | +export <listname> [\fB-t\fP | \fB--type TYPE\fP] | |
66 | +.RS | |
67 | +Export the list | |
68 | +.I listname | |
69 | +using the specified output | |
70 | +.I TYPE | |
71 | +to the standard output. The potentian values for | |
72 | +.I TYPE | |
73 | +are: "json" (the default) and "html". The JSON output type will write a | |
74 | +standard JSON formatted object to the standard output, while the HTML | |
75 | +option will print a HTML Table to the standard output. | |
76 | +.RE | |
77 | +.TP | |
78 | +import <list.json> [\fB--update\fP] [\fB--overwrite\fP] [\fB--overwrite-list\fP] | |
79 | +.RS | |
80 | +Import a JSON formatted list. If the list doesn't exist, then a new list is | |
81 | +created and filled with the contents of | |
82 | +.I list.json | |
83 | +\&. It should also be mentioned that the name of | |
84 | +.I list.json | |
85 | +has no impact on which list to update, that information is stored in the | |
86 | +JSON file itself. | |
87 | +.PP | |
88 | +If you import a list with no command options, then any new items in | |
89 | +.I list.json | |
90 | +are automatically appended to your pre-existing list. No old items are | |
91 | +updated, removed, or overwritten. | |
92 | +.PP | |
93 | +If you choose \fB--update\fP, then any items which can be found in both | |
94 | +the original list and | |
95 | +.I list.json | |
96 | +will be updated to use the information from whichever has the more recent | |
97 | +"last_updated" field. | |
98 | +.PP | |
99 | +If \fB--overwrite\fP is used, then any items which are present in both | |
100 | +the original list and | |
101 | +.I list.json | |
102 | +are changed to use the information found in | |
103 | +.I list.json | |
104 | +\&. | |
105 | +.PP | |
106 | +Finally, \fB--overwrite-list\fP will remove everything from the original | |
107 | +list and use only the information found in | |
108 | +.I list.json | |
109 | +(in other words, this will replace the entire list with | |
110 | +.I list.json | |
111 | +). | |
112 | +.RE | |
113 | +.TP | |
64 | 114 | show <listname> [\fB-n\fP | \fB--numbered\fP] [\fB--show-headers\fP] |
65 | 115 | .RS |
66 | 116 | Show the contents of a \fIlistname\fP. |
@@ -118,19 +168,24 @@ medialist-cli delete manga | ||
118 | 168 | Deletes the list with name "manga". |
119 | 169 | .TP |
120 | 170 | medialist-cli delete manga 1 |
121 | -Deletes the item with ID "1" from the list "manga". As an ID is supplied, the | |
122 | -list itself isn't deleted. | |
171 | +Deletes the item with ID "1" from the list "manga". As an ID is supplied, | |
172 | +the list itself isn't deleted. | |
123 | 173 | .SH FILES |
124 | 174 | .TP |
125 | 175 | .I $XDG_CONFIG_HOME/medialist/medialist.conf |
126 | 176 | Configuration file for all MediaList programs. |
127 | 177 | .SH BUGS |
128 | -No known bugs. | |
178 | +Currently there is no proper way of handling something that you want to | |
179 | +re-read or re-watch. So, if you have something that is marked COMPLETE | |
180 | +(with an end date set), then you change the status to READING/WATCHING, | |
181 | +only to then change it back to the COMPLETE, the end date will be updated | |
182 | +again, overwriting the original end date. | |
129 | 183 | ." .SH "SEE ALSO" |
130 | 184 | ." .BR medialist (5). |
131 | 185 | .SH COPYRIGHT |
132 | -Copyright \(co 2021, 2022 dawning. | |
186 | +Copyright \(co 2021-2023 dawning. | |
133 | 187 | .PP |
134 | 188 | Copying and distribution of this file, with or without modification, are |
135 | -permitted in any medium without royalty provided the copyright notice and this | |
136 | -notice are preserved. This file is offered as-is, without any warranty. | |
189 | +permitted in any medium without royalty provided the copyright notice and | |
190 | +this notice are preserved. This file is offered as-is, without any | |
191 | +warranty. |