[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Delete multiple repositories programmatically from elisp by supplyin
Re: Delete multiple repositories programmatically from elisp by supplying `y' as the answer to an interactively called function.
Wed, 8 Dec 2021 10:56:12 +0800
On Wed, Dec 8, 2021 at 1:05 AM Robert Pluim <firstname.lastname@example.org> wrote:
> That function takes a 'force' argument, so if you manage to supply any
> prefix arg at all it will delete all the repos without prompting. One
> way to do that is by using `current-prefix-arg':
> (let ((current-prefix-arg '(4)))
> (call-interactively #'straight-remove-unused-repos))
The author told me the following solution here :
You can pass the universal argument to the command and force will be non-nil.
And if you wish to use the command in an elisp program you can just
pass the force argument you desire:
Re: Delete multiple repositories programmatically from elisp by supplying `y' as the answer to an interactively called function., Michael Heerdegen, 2021/12/07