mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
docs(cli): make file/dir/stdout type errors consistent
This commit is contained in:
@ -55,16 +55,16 @@ See argument types in `doom-cli-argument-types', and `defcli!' for usage.")
|
|||||||
|
|
||||||
(defvar doom-cli-option-arg-types
|
(defvar doom-cli-option-arg-types
|
||||||
`((dir :test file-directory-p
|
`((dir :test file-directory-p
|
||||||
:read doom-path
|
:read expand-file-name
|
||||||
:error "Directory does not exist"
|
:error "Not a valid path to an existing directory"
|
||||||
:zshcomp "_dirs")
|
:zshcomp "_dirs")
|
||||||
(file :test file-exists-p
|
(file :test file-exists-p
|
||||||
:read doom-path
|
:read expand-file-name
|
||||||
:error "File does not exist"
|
:error "Not a valid path to an existing file"
|
||||||
:zshcomp "_files")
|
:zshcomp "_files")
|
||||||
(stdout :test ,(lambda (str) (equal str "-"))
|
(stdout :test ,(lambda (str) (equal str "-"))
|
||||||
:read identity
|
:read identity
|
||||||
:error "Must be a dash to signal stdout"
|
:error "Not a dash to signal stdout"
|
||||||
:zshcomp "(-)")
|
:zshcomp "(-)")
|
||||||
(path :read expand-file-name :zshcomp "_files")
|
(path :read expand-file-name :zshcomp "_files")
|
||||||
(form :read read)
|
(form :read read)
|
||||||
|
Reference in New Issue
Block a user