GNU bug report logs -
#58408
[PATCH] gnu: Add doctl.
Previous Next
Reported by: Matthew James Kraai <kraai <at> ftbfs.org>
Date: Mon, 10 Oct 2022 09:56:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #26 received at 58408 <at> debbugs.gnu.org (full text, mbox):
Hello,
On Wed Oct 12, 2022 at 2:08 PM BST, Matthew James Kraai wrote:
> Here's an updated patch that installs autocompletion scripts for Bash, fish, and Zsh.
Nice catch :)
> + (lambda _
> + (let ((install-completion
> + (lambda (shell file)
> + (let ((file (string-append #$output file)))
> + (mkdir-p (dirname file))
> + (with-output-to-file file
> + (lambda _
> + (invoke (string-append #$output "/bin/doctl")
> + "completion" shell)))))))
> + (install-completion "bash" "/etc/bash_completion.d/doctl")
> + (install-completion "fish"
> + "/etc/fish/completions/doctl.fish")
> + (install-completion "zsh"
> + "/etc/zsh/site-functions/_doctl")))))))
I think it might be better to use ``(define (...) ...)'' instead of
``(let ((... (lambda ...))) ...)'' here.
-- (
This bug report was last modified 2 years and 207 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.