refactor(install): remove interactive mode, simplify installation
Interactive mode was causing issues with automated testing and the nupst update command (failed with /dev/tty errors). Since users running curl|bash have already decided to install, prompts add no value and only create friction. Changes: - Removed -y/--yes flag (no longer needed) - Removed all interactive confirmation prompts - Removed terminal detection logic (/dev/tty handling) - Updated README to remove all -y flag references - Simplified installation examples Benefits: - Works in all environments (piped, non-interactive, containers) - Fixes nupst update command - Cleaner user experience - Matches standard install script patterns (homebrew, rustup, etc.)
This commit is contained in:
16
readme.md
16
readme.md
@@ -29,15 +29,8 @@ dependencies.
|
||||
The easiest way to install NUPST is using the automated installer:
|
||||
|
||||
```bash
|
||||
# Download and run installer (most reliable)
|
||||
curl -sSL https://code.foss.global/serve.zone/nupst/raw/branch/main/install.sh -o nupst-install.sh
|
||||
sudo bash nupst-install.sh
|
||||
rm nupst-install.sh
|
||||
```
|
||||
|
||||
```bash
|
||||
# One-line installation (non-interactive with auto-confirm)
|
||||
curl -sSL https://code.foss.global/serve.zone/nupst/raw/branch/main/install.sh | sudo bash -s -- -y
|
||||
# One-line installation
|
||||
curl -sSL https://code.foss.global/serve.zone/nupst/raw/branch/main/install.sh | sudo bash
|
||||
```
|
||||
|
||||
The installer will:
|
||||
@@ -76,7 +69,6 @@ sudo mv nupst /usr/local/bin/nupst
|
||||
The installer script (`install.sh`) supports the following options:
|
||||
|
||||
```
|
||||
-y, --yes Automatically answer yes to all prompts
|
||||
-h, --help Show help message
|
||||
--version VERSION Install specific version (e.g., --version v4.0.0)
|
||||
--install-dir DIR Custom installation directory (default: /opt/nupst)
|
||||
@@ -373,7 +365,7 @@ sudo nupst service disable
|
||||
Re-run the installer to update to the latest version:
|
||||
|
||||
```bash
|
||||
curl -sSL https://code.foss.global/serve.zone/nupst/raw/branch/main/install.sh | sudo bash -s -- -y
|
||||
curl -sSL https://code.foss.global/serve.zone/nupst/raw/branch/main/install.sh | sudo bash
|
||||
```
|
||||
|
||||
The installer will:
|
||||
@@ -461,7 +453,7 @@ The installer script automatically handles the entire migration while preserving
|
||||
|
||||
```bash
|
||||
# Run the installer (handles stop/update/restart automatically)
|
||||
curl -sSL https://code.foss.global/serve.zone/nupst/raw/branch/main/install.sh | sudo bash -s -- -y
|
||||
curl -sSL https://code.foss.global/serve.zone/nupst/raw/branch/main/install.sh | sudo bash
|
||||
|
||||
# Verify
|
||||
nupst service status
|
||||
|
Reference in New Issue
Block a user