intelhex 0.2.1

Provides tools for working with Intel Hex files
Documentation
#!/bin/bash
# This script generated by watchdog (/home/tabre/.local/bin/watchdog)
# 2025-06-20 09:41:58AM

#run_on="create,modify,delete"
run_on="modify"
exclude="dev|.git|readme.md|target/|ref/|out/|\.(hex)"
dir="$2"
event="$3"
file="$4"
file_path="$dir$file"

main() {
    if [ "$file_path" == "./examples/load_file.rs" ]; then
        cargo run --example load_file
    elif [ "$file_path" == "./examples/save_file.rs" ]; then
        cargo run --example save_file
    else
        cargo run --example save_file
    fi
}

if [ "$1" == "__watchdog_fn__" ]; then
    main
else
    watchdog run ./ "/home/tabre/repos/intelhex/dev __watchdog_fn__" --events=$run_on --ignore=$exclude -p
fi