doomemacs/core/cli/debug.el
Henrik Lissner b90dede1ab
💥 Replace package.el/quelpa with straight #374
There are a few kinks to iron out, but for the most part it's done. Doom
Emacs, powered by straight. Goodbye gnutls and elpa/quelpa issues.

This update doesn't come with rollback or lockfile support yet, but I
will eventually include one with Doom, and packages will be (by default,
anyway) updated in sync with Doom.

Relevant threads: #1577 #1566 #1473
2019-07-22 02:30:40 +02:00

27 lines
555 B
EmacsLisp

;;; core/cli/debug.el -*- lexical-binding: t; -*-
(load! "autoload/debug" doom-core-dir)
;;
;;; Commands
(def-command! info (&optional format)
"Output system info in markdown for bug reports."
(pcase format
("json"
(require 'json)
(with-temp-buffer
(insert (json-encode (doom-info)))
(json-pretty-print-buffer)
(print! (buffer-string))))
((or "md" "markdown")
(doom/info))
(_ (doom/info 'raw)))
nil)
(def-command! (version v) ()
"Reports the version of Doom and Emacs."
(doom/version)
nil)