• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

CLI interface to medialist (fossil mirror)


Commit MetaInfo

Révision30ced427ac1b0f30aacfa066d4ec901f89771227 (tree)
l'heure2023-03-16 15:45:51
Auteurmio <stigma@disr...>
Commitermio

Message de Log

Update manpage to include 'import' and 'export' command. Prepare for version 0.4.

FossilOrigin-Name: 981787a07e271f740bd51ca47a9e08ab0b1cd8848772fd68ebc68ea35d0e7d78

Change Summary

Modification

--- a/man/medialist-cli.1
+++ b/man/medialist-cli.1
@@ -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"
22 .SH NAME
33 medialist-cli \- CLI for MediaList
44 .SH SYNOPSIS
@@ -9,7 +9,8 @@ medialist-cli
99 .OP command_options...
1010 .SH DESCRIPTION
1111 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.
1314 .SH OPTIONS
1415 .TP
1516 --help
@@ -61,6 +62,55 @@ is provided, then the corresponding item is deleted from the list. In this case,
6162 the list itself isn't deleted.
6263 .RE
6364 .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
64114 show <listname> [\fB-n\fP | \fB--numbered\fP] [\fB--show-headers\fP]
65115 .RS
66116 Show the contents of a \fIlistname\fP.
@@ -118,19 +168,24 @@ medialist-cli delete manga
118168 Deletes the list with name "manga".
119169 .TP
120170 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.
123173 .SH FILES
124174 .TP
125175 .I $XDG_CONFIG_HOME/medialist/medialist.conf
126176 Configuration file for all MediaList programs.
127177 .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.
129183 ." .SH "SEE ALSO"
130184 ." .BR medialist (5).
131185 .SH COPYRIGHT
132-Copyright \(co 2021, 2022 dawning.
186+Copyright \(co 2021-2023 dawning.
133187 .PP
134188 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.