Add -i/--insecure flag to bin/doom

This commit is contained in:
Henrik Lissner 2018-06-15 03:58:04 +02:00
parent 0ef522bbf2
commit bd55e53691
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -32,6 +32,7 @@
(format! (bold "Options:\n"))
" -d --debug\t\tTurns on doom-debug-mode (and debug-on-error)\n"
" -e --emacsd DIR\tUse the emacs config at DIR (e.g. ~/.emacs.d)\n"
" -i --insecure\t\tDisable TLS/SSL validation (not recommended)\n"
" -p --private DIR\tUse the private module at DIR (e.g. ~/.doom.d)\n"
" -y --yes\t\tAuto-accept all confirmation prompts\n\n")
(princ (buffer-string)))
@ -47,6 +48,8 @@
(error "Did you mean 'doom help'?"))
((or "-d" "--debug")
(setq doom-debug-mode t))
((or "-i" "--insecure")
(setenv "INSECURE" "1"))
((or "-p" "--private")
(setq doom-private-dir (expand-file-name (concat (pop args) "/")))
(or (file-directory-p doom-private-dir)