From 0819cc0e55c299227a7de92719458f1117c82079 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 17 Apr 2020 12:44:53 -0400 Subject: [PATCH] Make lola-release-notes useful as a non-interactive function too --- emacs/init.org | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 53f1b76..98bb9ee 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -5331,7 +5331,7 @@ The aws-mfa command: "~/lola/release-manager/release_notes") "The directory containing the release notes repository.") - (defun lola-release-notes (staged) + (defun lola-release-notes (staged &optional repos) "Prints release notes for the latest release. If called with a prefix argument, prints release notes for the upcoming release instead." @@ -5340,10 +5340,12 @@ The aws-mfa command: "lola-travel-service" "lola-desktop")) (repos - (if (y-or-n-p "Query all repos?") - all-repos - (completing-read-multiple "Repos: " - all-repos)))) + (or + repos + (if (y-or-n-p "Query all repos?") + all-repos + (completing-read-multiple "Repos: " + all-repos))))) (with-env-from-file (expand-file-name (concat release-notes-repo "/.env")) (async-shell-command