Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Dec 24, 2024
1 parent 51c086e commit 1b126e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ jobs:
run: |
mktoc
git diff --exit-code
- name: Verify README examples are up to date
run: |
echo "SHELL: $SHELL"
mdcmd
git diff --exit-code
- name: Verify bash functions work
shell: bash
run: |
echo "SHELL: $SHELL"
wcl() { wc -l "$@"; }
export -f wcl
declare -xF
declare -F wcl
bmdf seq 1 10 '|' wcl
- name: Verify README examples are up to date
run: |
echo "SHELL: $SHELL"
mdcmd
git diff --exit-code
- name: Release
if: startsWith(github.ref, 'refs/tags/')
env:
Expand Down
8 changes: 7 additions & 1 deletion bmdf/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from click import argument, command, option, get_current_context, echo
from utz import proc
from utz.process import pipeline
from utz.process import pipeline, check

from bmdf import utils
from bmdf.utils import COPY_BINARIES, details, fence
Expand Down Expand Up @@ -68,6 +68,12 @@ def bmd(
returncode = 0
else:
cmds = [ shlex.join(cmd) for cmd in commands ]
cmd1 = commands[1][0]
print(f"{cmd1=}, {cmd1 in proc_env}, {check('which', cmd1)}")
print("Environment:")
for k, v in proc_env.items():
if k.startswith("BASH_FUNC_"):
print(f" {k}={v}")
output = pipeline(cmds, env=proc_env)
returncode = 0
except CalledProcessError as e:
Expand Down

0 comments on commit 1b126e9

Please sign in to comment.