doomemacs/lisp/cli
Henrik Lissner 90dae25940
fix(cli): ensure $EMACSDIR/lisp/cli is in $DOOMPATH
If $DOOMPATH is malformed or set to a value that does not contain a
valid path to Doom's CLI library in $EMACSDIR/lisp/cli (see #7608),
bin/doom no longer functions, emitting "a subcommand is required"
errors.

This change ensures that the CLI library is always the last (implicit)
element in doom-cli-load-path, and ensures $DOOMPATH is never written to
the user's envvar file (in case they try to use bin/doom from inside a
terminal within a Doom Emacs session), which should ensure users -- at
least -- never find themselves stranded without the Doom CLI.

Fix: #7608
Co-authored-by: bpizzi <bpizzi@users.noreply.github.com>
2024-02-07 17:24:24 -05:00
..
make refactor!: restructure Doom core 2022-07-30 22:41:13 +02:00
ci.el nit: revise comments, reformat config sections 2022-09-16 01:14:21 +02:00
compile.el refactor: s/doom-modules-dirs/doom-module-load-path/ 2024-02-05 17:21:20 -05:00
doctor.el docs: revise and fix nerd-icons doctor check 2023-09-16 15:32:54 +02:00
env.el fix(cli): ensure $EMACSDIR/lisp/cli is in $DOOMPATH 2024-02-07 17:24:24 -05:00
help.el nit: minor comment revision and refactors 2022-09-16 17:01:57 +02:00
info.el refactor!: restructure Doom core 2022-07-30 22:41:13 +02:00
install.el refactor!: replace all-the-icons with nerd-icons 2023-09-14 01:03:55 +02:00
make.el refactor!(cli): rename cli definers for consistency 2022-09-12 11:45:59 +02:00
meta.el refactor(cli): reorganize CLI library 2022-09-25 17:52:07 +02:00
packages.el refactor!: deprecate IS-* OS constants 2024-02-04 17:54:29 -05:00
profiles.el feat(cli): introduce DOOMPROFILELOAD{FILE,PATH} envvars 2022-09-18 00:28:13 +02:00
run.el fix(cli): link $XDG_*_HOME to fake $HOME for doom run 2022-09-18 13:55:47 +02:00
sync.el tweak(cli): doom sync: don't purge straight builds by default 2022-10-29 01:57:43 +02:00
test.el refactor!(cli): rename cli definers for consistency 2022-09-12 11:45:59 +02:00
upgrade.el docs(cli): doom upgrade: s/-f/--force 2022-09-30 22:59:37 +02:00