From 042bd8942abbc8888cdb83909909e2cfd3b9a8f6 Mon Sep 17 00:00:00 2001 From: rsteube Date: Sat, 18 Feb 2023 11:52:05 +0100 Subject: [PATCH] run: add flags to env --- example/runnable.yaml | 12 ++++++++++++ example_test.go | 3 ++- run.go | 15 +++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/example/runnable.yaml b/example/runnable.yaml index 613e226..a8e69c6 100644 --- a/example/runnable.yaml +++ b/example/runnable.yaml @@ -12,3 +12,15 @@ commands: positional: - - "$(git branch --format '%(refname:short)\t%(subject)\tblue')" - "$(git tag --format '%(refname:short)\t\tyellow')" + + - name: sub3 + description: shell with flags + run: "$(git log --author \"${C_FLAG_AUTHOR}\" $1)" + flags: + -a, --author=: limit to author + completion: + flag: + author: ["$(git shortlog --summary --email HEAD | sed -e 's/^.*\t//' -e 's/