aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-02-02 23:47:10 +0100
committerTeddy Wing2021-02-02 23:47:10 +0100
commit75b5d75523d36336af810207c3363044020bba17 (patch)
tree12769202537aa9169e4c108374397aee0b79c2c8
parent1a0c2c421d97f06087fab401676f0904b288bbd2 (diff)
downloadextreload-75b5d75523d36336af810207c3363044020bba17.tar.bz2
Add config class
We'll use this as a storage container for the command line options.
-rw-r--r--l/extreload.asd1
-rw-r--r--l/src/config.lisp16
2 files changed, 17 insertions, 0 deletions
diff --git a/l/extreload.asd b/l/extreload.asd
index 73402fb..9a09c1b 100644
--- a/l/extreload.asd
+++ b/l/extreload.asd
@@ -9,6 +9,7 @@
:components ((:file "package")
(:file "macro")
(:file "option")
+ (:file "config")
(:file "main"))))
:build-operation "program-op"
diff --git a/l/src/config.lisp b/l/src/config.lisp
new file mode 100644
index 0000000..86b77d3
--- /dev/null
+++ b/l/src/config.lisp
@@ -0,0 +1,16 @@
+(in-package :extreload)
+
+(defclass config ()
+ ((socket-url
+ :initarg :socket-url
+ :reader socket-url
+ :documentation "DevTools WebSocket URL")
+ (extension-ids
+ :initarg :extension-ids
+ :reader extension-ids
+ :documentation "Sequence of extension IDs")
+ (reload-current-tab
+ :initarg :reload-current-tab
+ :initform nil
+ :reader reload-current-tab
+ :documentation "True if the current tab should be reloaded")))