[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 2764a29989 08/14: Update dtache-env-mode
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 2764a29989 08/14: Update dtache-env-mode |
Date: |
Fri, 13 May 2022 11:57:48 -0400 (EDT) |
branch: externals/dtache
commit 2764a299891e65f4c16704034a99fd85fdf59bcd
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Update dtache-env-mode
---
dtache-env | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/dtache-env b/dtache-env
index 0ff7f879b5..2427d3a342 100755
--- a/dtache-env
+++ b/dtache-env
@@ -1,18 +1,28 @@
#!/usr/bin/env bash
+# dtache-env is a script which purpose is to run a dtache command, and
+# issue to stdout, based on the exit code.
+
mode="$1"
shift
dtache_command="$*"
-if [ "$mode" = "dumb" ]; then
+# dtache-env features two different modes:
+# 1) Plain-text: where plain text data will be logged in the sessions output
+# 2) Terminal-data: the script command is used to record the terminal
+# data in raw format, this includes ansi escape sequences. The TERM
+# environmental variable is set to eterm-color in order to enabled
+# colored outputs from the dtache_command
+
+if [ "$mode" = "plain-text" ]; then
if eval "$dtache_command"; then
echo -e "\nDtache session finished"
else
echo -e "\nDtache session exited abnormally with code $?"
fi
-elif [ "$mode" = "smart" ]; then
+elif [ "$mode" = "terminal-data" ]; then
TERM="eterm-color"
- if eval script --quiet -f -e -c "\"$dtache_command\"" /dev/null; then
+ if eval script --quiet --flush --return --command "\"$dtache_command\""
/dev/null; then
echo -e "\nDtache session finished"
else
echo -e "\nDtache session exited abnormally with code $?"
- [elpa] externals/dtache updated (5a39733299 -> 04f27090ae), ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 19f13e25d5 02/14: new-dtache-env, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 60ec4c26d1 03/14: Add smart-mode-block-list, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache d34c6cb023 10/14: Delete README.org, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache c1f3b629b8 01/14: Update README, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 0f3dce2191 04/14: Fix tests, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 7f07d2ddd3 06/14: Add missing autoload cookie, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 2764a29989 08/14: Update dtache-env-mode,
ELPA Syncer <=
- [elpa] externals/dtache 7311bcaac8 09/14: Update dtache-env-mode implementation, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 5087f90120 12/14: Update CHANGELOG, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 80d019e595 05/14: Address suggestion from linter, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache d0c5522c9e 07/14: Update README.md, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache df25737444 13/14: Mention that users need to update dtache-env, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 12e3ec8f1e 11/14: Make dtache-copy-session compatible with env mode, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 04f27090ae 14/14: Update contributor section in README, ELPA Syncer, 2022/05/13