#!/bin/bash # VideoTools Convenience Script # Source this file in your shell to add the 'VideoTools' command PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # Create alias and function for VideoTools alias VideoTools="bash $PROJECT_ROOT/scripts/run.sh" # Also create a rebuild function for quick rebuilds VideoToolsRebuild() { echo "Rebuilding VideoTools..." bash "$PROJECT_ROOT/scripts/build.sh" } # Create a clean function VideoToolsClean() { echo "Cleaning VideoTools build artifacts..." cd "$PROJECT_ROOT" go clean -cache -modcache -testcache rm -f "$PROJECT_ROOT/VideoTools" echo "Clean complete" } # VideoTools commands loaded silently # Available commands: VideoTools, VideoToolsRebuild, VideoToolsClean