Skip to content

Commit

Permalink
pkg edit foo.com
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 13, 2023
1 parent e4479da commit 9d2e356
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bin/pkg-edit
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ if test -z "$1"; then
fi
done
else
#TODO search TEA_PANTRY_PATH and implicit pantry path
echo "unimplemented" >&2
exit 1
for x in $(echo "$TEA_PANTRY_PATH" | tr ':' '\n'); do
if test -f "$x/projects/$1/package.yml"; then
PKGS="$x/projects/$1/package.yml $PKGS"
fi
done
if test -z "$PKGS"; then
echo "error: \`$1\` not found in \`\$TEA_PANTRY_PATH\`" >&2
exit 1
fi
fi

if test -z "$EDITOR"; then
Expand Down

0 comments on commit 9d2e356

Please sign in to comment.