[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#58408] [PATCH] gnu: Add doctl.
From: |
( |
Subject: |
[bug#58408] [PATCH] gnu: Add doctl. |
Date: |
Wed, 12 Oct 2022 16:01:32 +0100 |
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.
-- (
[bug#58408] [PATCH] gnu: Add doctl., Matthew James Kraai, 2022/10/12
- [bug#58408] [PATCH] gnu: Add doctl.,
( <=