[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/zuul 58af096228 04/17: Update output to contain cmd as
From: |
ELPA Syncer |
Subject: |
[elpa] externals/zuul 58af096228 04/17: Update output to contain cmd as well |
Date: |
Tue, 30 Aug 2022 11:58:24 -0400 (EDT) |
branch: externals/zuul
commit 58af0962289c3c9ec5628f72e88f92ef40753632
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Update output to contain cmd as well
---
zuul.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/zuul.el b/zuul.el
index ec08e58f24..cef94215f0 100644
--- a/zuul.el
+++ b/zuul.el
@@ -764,12 +764,20 @@ Optionally provide extra parameters PARAMS, PARSER,
METHOD, BUFFER or HEADERS."
(seq-remove #'null)))))
(defun zuul--build-host-output (host)
- "Return the output from the HOST."
+ "Return the command and its output from the HOST."
(pcase-let* ((`(,_hostname . ,data) host)
+ (cmd (let-alist data .cmd))
(output (let-alist data .stdout))
(host-id (let-alist data .zuul_log_id))
(zuul--build-data `(,@zuul--build-data :host ,host)))
- (when (and output (not (string-empty-p output)))
+ (when-let ((cmd-str
+ (when cmd
+ (if (stringp cmd)
+ cmd
+ (mapconcat #'identity cmd " ")))))
+ (if (or (null output) (string-empty-p output))
+ (setq output (concat "$ " cmd-str "\n"))
+ (setq output (concat "$ " cmd-str "\n" output "\n")))
(put-text-property 0 (length output) 'zuul-playbook
zuul--build-playbook-id output)
(put-text-property 0 (length output) 'zuul-play zuul--build-play-id
output)
(put-text-property 0 (length output) 'zuul-task zuul--build-task-id
output)
- [elpa] branch externals/zuul created (now ad20c55828), ELPA Syncer, 2022/08/30
- [elpa] externals/zuul 1ac0b6635e 06/17: Move zuul--highlight-cmd, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul 67165f7805 05/17: Add highlight of command, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul 0003af3679 10/17: Add functions for anonymized screenshots, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul 36fb6e7a13 15/17: Address feedback from package-lint, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul c3e69263ce 14/17: Update command section in README, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul b14fb97cc0 03/17: Replace keybinding for eldoc-mode, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul c15f79d769 07/17: Add previous/next command in build log, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul 982b0eac12 09/17: Add faces for prompt and input in zuul build, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul 83f68268cc 01/17: Add LICENSE file, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul 58af096228 04/17: Update output to contain cmd as well,
ELPA Syncer <=
- [elpa] externals/zuul aecdb85b15 02/17: Add zuul.el, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul ad20c55828 17/17: Update required Emacs version, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul d58e139493 08/17: Update zuul-open-build-log implementation, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul ef4dba22c6 11/17: Increase anonymity, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul 3c0e5ccd4e 16/17: Address feedback from checkdoc, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul 02c7f26463 12/17: Version 0.2, ELPA Syncer, 2022/08/30
- [elpa] externals/zuul 22d942a78c 13/17: Bump header version in zuul.el, ELPA Syncer, 2022/08/30