diff options
author | Teddy Wing | 2022-05-08 00:23:34 +0200 |
---|---|---|
committer | Teddy Wing | 2022-05-08 00:28:54 +0200 |
commit | 8b2a0beca97552808a4a8c55308a0fd93af27375 (patch) | |
tree | 73025349877489b621927db166fd35878db19c2c /src/config.lisp | |
parent | 9553c53d0064da9d1c5c1af303746f17efeb4f71 (diff) | |
download | wajir-8b2a0beca97552808a4a8c55308a0fd93af27375.tar.bz2 |
Move configuration into a `config` object
We can later make a config from command line arguments.
Also don't require "https://" prefix from endpoint config. Doesn't make
sense to require that in the input when we can add it in the program.
Diffstat (limited to 'src/config.lisp')
-rw-r--r-- | src/config.lisp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/config.lisp b/src/config.lisp new file mode 100644 index 0000000..66e7ac9 --- /dev/null +++ b/src/config.lisp @@ -0,0 +1,19 @@ +(in-package :wajir) + +(defclass config () + ((login + :initarg :login + :reader login + :documentation "Jira login email address") + (token + :initarg :token + :reader token + :documentation "Jira authentication token") + (endpoint + :initarg :endpoint + :reader endpoint + :documentation "Jira site URL (e.g. example.atlassian.net)") + (jql + :initarg :jql + :reader jql + :documentation "JQL querying issues to watch"))) |