Mark "_run_arduino_cli" as private

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent 805216592b
commit 4aab959f52
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -74,7 +74,7 @@ configure_arduino_cli() {
} }
install_arduino_cli_config() { install_arduino_cli_config() {
run_arduino_cli config init _run_arduino_cli config init
} }
install_arduino_core_kaleidoscope() { install_arduino_core_kaleidoscope() {
@ -88,10 +88,10 @@ install_arduino_core_avr() {
} }
install_arduino_core() { install_arduino_core() {
run_arduino_cli core install "$1" _run_arduino_cli core install "$1"
} }
run_arduino_cli() { _run_arduino_cli() {
ARDUINO_DIRECTORIES_USER=${ARDUINO_DIRECTORIES_USER} \ ARDUINO_DIRECTORIES_USER=${ARDUINO_DIRECTORIES_USER} \
ARDUINO_DIRECTORIES_DATA=${ARDUINO_DIRECTORIES_DATA} \ ARDUINO_DIRECTORIES_DATA=${ARDUINO_DIRECTORIES_DATA} \
ARDUINO_DIRECTORIES_DOWNLOADS=${ARDUINO_DIRECTORIES_DOWNLOADS} \ ARDUINO_DIRECTORIES_DOWNLOADS=${ARDUINO_DIRECTORIES_DOWNLOADS} \
@ -107,7 +107,7 @@ _arduino_prop() {
_arduino_props() { _arduino_props() {
if [ "x${_ARDUINO_PREFS}x" == "xx" ]; then if [ "x${_ARDUINO_PREFS}x" == "xx" ]; then
_ARDUINO_PREFS=$(run_arduino_cli --fqbn "${FQBN}" compile --show-properties "${SKETCH_FILE_PATH}") _ARDUINO_PREFS=$(_run_arduino_cli --fqbn "${FQBN}" compile --show-properties "${SKETCH_FILE_PATH}")
fi fi
echo "$_ARDUINO_PREFS" echo "$_ARDUINO_PREFS"
} }
@ -242,7 +242,7 @@ flash() {
port="${DEVICE_PORT:=$(_find_device_port)}" port="${DEVICE_PORT:=$(_find_device_port)}"
fi fi
run_arduino_cli upload \ _run_arduino_cli upload \
--fqbn "${FQBN}" \ --fqbn "${FQBN}" \
--port "${port}" \ --port "${port}" \
"${ARDUINO_VERBOSE}" "${ARDUINO_VERBOSE}"
@ -303,7 +303,7 @@ compile() {
_CMD_CXX="${CXX:-${COMPILER_PREFIX}${CXX_COMPILER_BASENAME}${COMPILER_SUFFIX}}" _CMD_CXX="${CXX:-${COMPILER_PREFIX}${CXX_COMPILER_BASENAME}${COMPILER_SUFFIX}}"
_CMD_CC="${CC:-${COMPILER_PREFIX}${C_COMPILER_BASENAME}${COMPILER_SUFFIX}}" _CMD_CC="${CC:-${COMPILER_PREFIX}${C_COMPILER_BASENAME}${COMPILER_SUFFIX}}"
_CMD_AR="${AR:-${COMPILER_PREFIX}${AR_BASENAME}${COMPILER_SUFFIX}}" _CMD_AR="${AR:-${COMPILER_PREFIX}${AR_BASENAME}${COMPILER_SUFFIX}}"
run_arduino_cli compile \ _run_arduino_cli compile \
--fqbn "${FQBN}" \ --fqbn "${FQBN}" \
--libraries "${KALEIDOSCOPE_DIR}/.." \ --libraries "${KALEIDOSCOPE_DIR}/.." \
--build-path "${BUILD_PATH}" \ --build-path "${BUILD_PATH}" \

Loading…
Cancel
Save