Commit Graph

201 Commits

Author SHA1 Message Date
Henrik Lissner
d232ba241f
Remove 'doom autoloads'
It's redundant with doom refresh
2019-12-05 14:54:49 -05:00
Henrik Lissner
153fbbc466
cli/upgrade: print git fetch log on successful upgrade 2019-12-02 20:22:01 -05:00
Henrik Lissner
24506f15bf
cli/env: fix doom-env-ignored-vars not being ignored
And add HOME to ignored vars.
2019-12-02 20:22:00 -05:00
Henrik Lissner
a0d94e0db7
cli/upgrade: fix -y/--yes for 'doom upgrade'
Otherwise, 'doom upgrade' throws 'Unrecognized switch "-y"' error after
updating Doom.
2019-12-02 20:22:00 -05:00
Henrik Lissner
886fa36ac8
Improve 'doom purge' progress output 2019-11-25 02:18:01 -05:00
Henrik Lissner
570894e1c8
cli/upgrade: 'doom refresh' after upgrading, before updating
Fixes an issue where uninitialized packages aren't installed when 'doom
update' tries to update them.
2019-11-24 19:38:49 -05:00
Henrik Lissner
d37ebee2f8
Print progress to same line on 'doom update'
Experimental.
2019-11-24 16:50:46 -05:00
Henrik Lissner
26c8f5c6ef
Bytecompiler bytecompiler, won't you shut up 2019-11-23 01:21:25 -05:00
Henrik Lissner
803da8b3b9
Fix #2104: prevent double-package-init on 'doom refresh'
'Could not find package emacsmirror-mirror in recipe repositories'
error, which shouldn't happen since emacsmirror-mirror is a recipe repo.
2019-11-23 01:21:25 -05:00
Henrik Lissner
9d9b6e514c
Refactor autoloads generater 2019-11-23 01:21:24 -05:00
Henrik Lissner
4351474bf3
Add "X updated" notice after package is updated
To make it clearer what package was just updated after spewing a lot of
git log output.
2019-11-22 16:15:06 -05:00
Henrik Lissner
c9ae1f0a30
cli/env: ignore GPG_TTY & TERM envvars 2019-11-22 16:14:05 -05:00
Henrik Lissner
88eb9d1d61
Don't bind noninteractive while building autoloads
See raxod502/straight.el#431
2019-11-22 13:52:07 -05:00
Henrik Lissner
d474223a99
cli/upgrade: don't use removed -f switch 2019-11-16 21:04:08 -05:00
Henrik Lissner
82c0fb6fc7
cli/doctor: ensure modules are fully loaded 2019-11-12 15:24:02 -05:00
Henrik Lissner
c297d091bd
Fix void-function doom-initialize-packages on 'doom upgrade' 2019-11-10 23:43:05 -05:00
Henrik Lissner
8d112fdca8
Prevent void-variable errors on 'doom upgrade'
If Doom is up-to-date, certain Doom package state doesn't get
initialized for the 'doom update' that occurs directly after, causing
these errors.
2019-11-10 20:15:25 -05:00
Henrik Lissner
4ceb09c219
cli/upgrade: don't double-update packages
And don't initialize too much of Doom before updating it.
2019-11-10 16:44:53 -05:00
Henrik Lissner
829e1762b1
cli/doctor: fix vestigial variable references 2019-11-10 04:56:55 -05:00
Henrik Lissner
e252ee61e7
cli/doctor: fix HOME project root detection 2019-11-10 01:39:30 -05:00
Henrik Lissner
962459e8ba
cli/doctor: fix cache filesize checks
Closes #2041
2019-11-10 01:35:21 -05:00
Henrik Lissner
6c31968a46
cli/doctor: fix font checks 2019-11-09 20:32:48 -05:00
Henrik Lissner
5c3f7d648d
cli/doctor: fix void-variable font-dest error
...when a font is missing.
2019-11-09 20:28:40 -05:00
Henrik Lissner
31f1873aaa
Fix tests 2019-11-09 17:03:47 -05:00
Henrik Lissner
a55b5a4514
Fix void-function doom-sh error in 'doom upgrade' #2034 2019-11-09 11:06:06 -05:00
Henrik Lissner
3896b994b5
Remove double-negative filesize from 'doom purge' 2019-11-08 17:30:21 -05:00
Henrik Lissner
d20d664f84
Update 'doom install' to reflect recent changes #2033 2019-11-08 16:39:48 -05:00
Henrik Lissner
35152fda67
Fix 'doom env -c'
Throwing "I don't understand 'doom env -c'" errors
2019-11-08 16:20:43 -05:00
Henrik Lissner
ee2c1e384c
Fix void-variable doom-module-dirs error from 'doom clean' 2019-11-08 16:19:29 -05:00
Henrik Lissner
d099fac2b9
Fix core & core-lib tests 2019-11-08 16:02:07 -05:00
Henrik Lissner
873fc5c0db
Rewrite core-cli
Highlights:
- 'doom purge' now purges builds, elpa packages, and repos by default.
  Regrafting repos is now opt-in with the -g/--regraft switches.
  Negation flags have been added for elpa/repos: -e/--no-elpa and
  -r/--no-repos.
- Removed 'doom rebuild' (it is now just 'doom build' or 'doom b').
- Removed 'doom build's -f flag, this is now the default. Added the -r
  flag instead, which only builds packages that need rebuilding.
- 'doom update' now updates packages synchronously, but produces more
  informative output about the updating process.
- Straight can now prompt in batch mode, which resolves a lot of issues
  with 'doom update' (and 'doom upgrade') freezing indefinitely or
  throwing repo branch errors.
- 'bin/doom's switches are now positional. Switches aimed at `bin/doom`
  must precede any subcommands. e.g.
    Do: 'doom -yd upgrade'
    Don't do: 'doom upgrade -yd'
- Moved 'doom doctor' from bin/doom-doctor to core/cli/doctor, and
  integrated core/doctor.el into it, as to avoid naming conflicts
  between it and Emacs doctor.
- The defcli! macro now has a special syntax for declaring flags, their
  arguments and descriptions.

Addresses #1981, #1925, #1816, #1721, #1322
2019-11-08 16:02:06 -05:00
Henrik Lissner
297728bf74
Generalize doom-file-cookie-p
And move it to doom-file-cookie-p for anyone to use.
2019-10-04 22:42:53 -04:00
Henrik Lissner
d297dc6934
Minor refactor & comment revision across the board 2019-10-03 23:33:59 -04:00
Henrik Lissner
018fc8318d
cli/env: ignore TERM envvar 2019-09-30 16:47:32 -04:00
Henrik Lissner
45240699e0
Remove doom-elpa-dir variable
And just use package-user-dir. No need for two variable when one will
do.
2019-09-26 14:26:47 -04:00
Sean Farley
686e020287 cli: add documentation string about new flags 2019-09-22 14:34:40 -07:00
Sean Farley
85ea924595 cli: fix wrong argument being sent to doom-upgrade
In 84837fa0d, a new argument was added before the timeout arg which
broken this flag.
2019-09-22 14:34:22 -07:00
Henrik Lissner
497fd08af7
Remove 'doom patch-macos' command
'doom env' has long since replaced it. Nobody should be using
patch-macos anymore.
2019-09-22 12:00:22 -04:00
Henrik Lissner
ed1943ba0a
Install buttercup through straight for tests 2019-09-20 18:15:25 -04:00
Henrik Lissner
f03eb67314
Fix 'doom rebuild' generating broken autoloads
Causes errors about being unable to find general.el
2019-09-20 01:23:58 -04:00
Henrik Lissner
18329fdeaf
Add switch docs in update & purge commands 2019-09-12 17:25:54 -04:00
Henrik Lissner
84837fa0d6
Add --threads option to 'doom update' #1736 2019-09-12 17:25:54 -04:00
Henrik Lissner
ab954439e8
Label 'doom env' errors as warnings
Because they can usually be ignored.
2019-09-12 17:25:54 -04:00
Henrik Lissner
5caa6add5c
Make 'doom upgrade' respect -y/--yes switches 2019-09-12 17:25:54 -04:00
Henrik Lissner
4fda7cd287
Don't auto-purge ELPA packages on 'doom refresh'
...or 'doom purge', without the -e or --elpa switches (or --all).
2019-09-09 23:04:07 -04:00
Henrik Lissner
4045827d61
Mention doom env's -o switch in envvar file header 2019-09-09 13:51:36 -04:00
Henrik Lissner
51e950cc5c
Display absolute paths in 'doom env' output
To make it clearer where the envvar file is saved to.
2019-09-09 13:44:12 -04:00
Henrik Lissner
ec81fc30a4
Minor correction to comment 2019-09-08 20:56:50 -04:00
Henrik Lissner
a44e9153d3
Fix #1764: 'doom autoload' generating broken autoloads.pkg.el
Due to missing straight state that is properly initialized for 'doom
refresh' (by doom-packages-install), but not for 'doom autoloads'.
2019-09-08 20:52:30 -04:00
Henrik Lissner
d308cedf95
Update help output for 'doom install' 2019-09-08 20:41:22 -04:00