mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-06 07:49:37 +08:00
15 lines
509 B
Bash
Executable File
15 lines
509 B
Bash
Executable File
#!/bin/bash
|
|
# sf-context — thin wrapper that delegates to sf_context.py.
|
|
# All real logic lives in the Python module — bash here just resolves the
|
|
# script directory and invokes Python with the user's args passed through.
|
|
|
|
set -e
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
if ! command -v python3 &> /dev/null; then
|
|
echo "sf-context: python3 not found on PATH — required by the salesforce-development plugin (see README Requirements)" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec python3 "$DIR/sf_context.py" "$@"
|