bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#66551: [PATCH] Add completion for Unix 'doas' command.


From: Antero Mejr
Subject: bug#66551: [PATCH] Add completion for Unix 'doas' command.
Date: Sun, 15 Oct 2023 11:29:29 +0000

Stefan Kangas <stefankangas@gmail.com> writes:

>> +;;;###autoload
>> +(defun pcomplete/doas ()
>> +  "Completion for the `doas' command."
>> +  (pcomplete-opt "su")
>
> Are there any other options that are worth adding?
>
>     https://man.openbsd.org/doas
>

The options "su" are the flags shared across BSD, Linux, and
eshell-builtin versions of doas. The revised patch (attached) has all
flags from the BSD version, but will provide completions for invalid
flags for Linux and eshell doas.

BSD and Linux doas doesn't have a -h/--help flag, so I don't think we
can get the flags using pcomplete-from-help unfortunately.

Attachment: 0001-Add-completion-for-Unix-doas-command.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]