File tree 1 file changed +10
-11
lines changed
src/certificaat/interface
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 57
57
" " ]
58
58
(str/join \newline)))
59
59
60
-
61
60
(defn error-msg [errors]
62
61
(str " The following errors occurred while parsing your command:\n\n "
63
62
(str/join \newline errors)))
124
123
(request options)
125
124
(h/run-hooks :after-request options))
126
125
:else (exit 0 " Nothing left to do at this point in time." )))
126
+ (defn renew [{domain :domain config-dir :config-dir :as options}]
127
+ (if (k/valid? (str config-dir domain " /authorization." domain " .uri" ) options)
128
+ (request options)
129
+ (do (authorize options)
130
+ (h/run-hooks :before-challenge options)
131
+ (accept-challenges options)
132
+ (request options)))
133
+ (h/run-hooks :after-request options))
127
134
128
135
(defn certificaat [args]
129
136
(let [{:keys [action options exit-message ok?]} (validate-args args)]
155
162
(puget/cprint config-options)))
156
163
" cron" (let [cli-options (validate ::domain/cli-options options)
157
164
config-options (validate ::domain/config (c/read-config options))
158
- options (merge config-options cli-options)
159
- {domain :domain config-dir :config-dir } options]
160
- (if (k/valid? (str config-dir domain " /authorization." domain " .uri" ) options)
161
- (request options)
162
- (do (authorize options)
163
- (h/run-hooks :before-challenge options)
164
- (accept-challenges options)
165
- (request options)))
166
- (h/run-hooks :after-request options))))))
167
-
165
+ options (merge config-options cli-options)]
166
+ (renew options))))))
You can’t perform that action at this time.
0 commit comments