1
0
Fork 0

- [script] passed command line arguments to gemget;

- update documentation.
This commit is contained in:
cage 2024-09-28 11:15:12 +02:00
parent 94dd5df350
commit 5559b99514
2 changed files with 6 additions and 4 deletions

View File

@ -16,13 +16,15 @@
;; usage:
;; echo URL | tinmop -e gemget.lisp
;; tinmop -e gemget.lisp -- URL or
;; echo "url" | tinmop -e gemget.lisp
(in-package :scripts)
(defun main ()
(handler-case
(let ((url (read-line *standard-input* nil nil nil)))
(let ((url (or (first command-line:*free-arguments*)
(read-line *standard-input* nil nil nil))))
(write-sequence (gemini-client:slurp-gemini-url url) *standard-output*)
(os-utils:exit-program 0))
(usocket:ns-host-not-found-error (e)

View File

@ -60,7 +60,7 @@ along with this program."
Welcome to ~a! A gemini, pleroma and kami client.
Welcome to ~a! A gemini, gopher, mastodon/pleroma and kami client.
- for available keychords (sequence of keys to fire a command) help type '?';
@ -87,7 +87,7 @@ Some useful keycords to start (the man page contains the full list):
- 'b' go back in history of visited URLs
- '!' search geminispace (contacts gemini://kennedy.gemi.dev/search)
· pleroma
· mastodon/pleroma
- 'C-t u' update current timeline
- 'C-t c' change timeline
- 'v' view post's attachments