mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add -i/--insecure flag to bin/doom
This commit is contained in:
3
bin/doom
3
bin/doom
@ -32,6 +32,7 @@
|
|||||||
(format! (bold "Options:\n"))
|
(format! (bold "Options:\n"))
|
||||||
" -d --debug\t\tTurns on doom-debug-mode (and debug-on-error)\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"
|
" -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"
|
" -p --private DIR\tUse the private module at DIR (e.g. ~/.doom.d)\n"
|
||||||
" -y --yes\t\tAuto-accept all confirmation prompts\n\n")
|
" -y --yes\t\tAuto-accept all confirmation prompts\n\n")
|
||||||
(princ (buffer-string)))
|
(princ (buffer-string)))
|
||||||
@ -47,6 +48,8 @@
|
|||||||
(error "Did you mean 'doom help'?"))
|
(error "Did you mean 'doom help'?"))
|
||||||
((or "-d" "--debug")
|
((or "-d" "--debug")
|
||||||
(setq doom-debug-mode t))
|
(setq doom-debug-mode t))
|
||||||
|
((or "-i" "--insecure")
|
||||||
|
(setenv "INSECURE" "1"))
|
||||||
((or "-p" "--private")
|
((or "-p" "--private")
|
||||||
(setq doom-private-dir (expand-file-name (concat (pop args) "/")))
|
(setq doom-private-dir (expand-file-name (concat (pop args) "/")))
|
||||||
(or (file-directory-p doom-private-dir)
|
(or (file-directory-p doom-private-dir)
|
||||||
|
Reference in New Issue
Block a user