diff options
author | Teddy Wing | 2022-05-08 23:19:02 +0200 |
---|---|---|
committer | Teddy Wing | 2022-05-08 23:19:02 +0200 |
commit | 4bf1a8866cf4286d3fca9e89a4afa20d11800edb (patch) | |
tree | 04a86c959e3553e4d8ceaafa18c7df4de0bb995e | |
parent | 9357b3b1e63365e2e28a4750da482e22e6335ef1 (diff) | |
download | wajir-4bf1a8866cf4286d3fca9e89a4afa20d11800edb.tar.bz2 |
config: Add a `print-object` method
Makes it more convenient to inspect the config object's fields.
-rw-r--r-- | src/config.lisp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.lisp b/src/config.lisp index ecee3de..5be891e 100644 --- a/src/config.lisp +++ b/src/config.lisp @@ -33,3 +33,10 @@ :initarg :jql :reader jql :documentation "JQL querying issues to watch"))) + +(defmethod print-object ((object config) stream) + (with-slots (login token endpoint sendmail email-to verbose jql) object + (print-unreadable-object (object stream :type t) + (format stream + ":login ~S :token ~S :endpoint ~S :sendmail ~S :email-to ~S :verbose ~S :jql ~S" + login token endpoint sendmail email-to verbose jql)))) |