#!/bin/bash

# Set the build directory and run the release build
cargo build --release

executable_path="target/release/nepdate-cli"

# Display the path of the executable
echo "ndate executable built at: $executable_path"
sleep 2

# Check if the executable exists and is runnable
if [ -f "$executable_path" ]; then
    # Run the executable
    echo "Running nepdate-cli..."
    $executable_path
else
    echo "Error: Executable not found at $executable_path"
fi
