From ffd96949e5e682aa42904d241772ba87ac72a067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Falc=C3=B3n?= Date: Fri, 16 Jan 2026 16:40:15 +0100 Subject: [PATCH] feat: Add wispermoney local command (#59) ## Changes - Moved `setup.sh` to `public/setup.sh` so it's accessible via `https://whisper.money/setup.sh` for remote users - Added `wispermoney` wrapper command in root directory for easy local execution - Updated README to document the new `wispermoney` command - Removed duplicate `setup.sh` from root directory ## Benefits - Remote users can still use: `bash <(curl -fsSL https://whisper.money/setup.sh)` - Local developers can now use: `./wispermoney install` (or start/stop/upgrade) - Single source of truth - no duplicate setup scripts - Cleaner project structure --- README.md | 12 ++++++------ setup.sh => public/setup.sh | 0 wispermoney | 4 ++++ 3 files changed, 10 insertions(+), 6 deletions(-) rename setup.sh => public/setup.sh (100%) create mode 100755 wispermoney diff --git a/README.md b/README.md index bc54c143..2aad4475 100644 --- a/README.md +++ b/README.md @@ -68,25 +68,25 @@ cd whisper-money 2. **Run the setup script:** ```bash -./setup.sh install +./wispermoney install ``` ### Available Commands -Once installed, you can use the setup script for common tasks: +Once installed, you can use the `wispermoney` command for common tasks: ```bash # Start all services -./setup.sh start +./wispermoney start # Stop all services -./setup.sh stop +./wispermoney stop # Upgrade to latest version -./setup.sh upgrade +./wispermoney upgrade # Interactive menu -./setup.sh +./wispermoney ``` ### Development Server diff --git a/setup.sh b/public/setup.sh similarity index 100% rename from setup.sh rename to public/setup.sh diff --git a/wispermoney b/wispermoney new file mode 100755 index 00000000..728fb513 --- /dev/null +++ b/wispermoney @@ -0,0 +1,4 @@ +#!/bin/bash + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +exec "$SCRIPT_DIR/public/setup.sh" "$@"