diff --git a/.github/workflows/installation_test.yml b/.github/workflows/installation_test.yml index d035ee3..b0567d5 100644 --- a/.github/workflows/installation_test.yml +++ b/.github/workflows/installation_test.yml @@ -12,9 +12,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Test installation script + - name: Get install script + id: get_linux_install_script run: | - curl -fsSL https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/scripts/install_stop_nagging.sh | bash + readme=$(cat README.md) + # the script is between and + # we remove lines starting with ``` + script=$(echo "$readme" | sed -n '//,//p' | sed '/^```/d') + echo "::set-output name=script::$script" + + - name: Test installation script + run: ${{ steps.get_linux_install_script.outputs.script }} - name: Verify installation run: | @@ -28,10 +36,18 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Get install script + id: get_windows_install_script + run: | + readme=$(cat README.md) + # the script is between and + # we remove lines starting with ``` + script=$(echo "$readme" | sed -n '//,//p' | sed '/^```/d') + echo "::set-output name=script::$script" + - name: Test installation script shell: powershell - run: | - iwr https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/scripts/install_stop_nagging.ps1 -useb | iex + run: ${{ steps.get_windows_install_script.outputs.script }} - name: Verify installation shell: powershell diff --git a/.gitignore b/.gitignore index a50ba29..37312f7 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ node_modules/ package-lock.json yarn.lock pnpm-lock.yaml +Miniconda3-latest-Linux-x86_64.sh diff --git a/README.md b/README.md index b91fb04..35976af 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ It uses a YAML file (`tools.yaml`) to list each tool's name, environment variables, and commands to run, making it easy for new contributors to update the logic without writing Rust code. +> [!WARNING] +> This tool is very new and may not work for all your tools. If you find a tool that doesn't work, please open an issue or submit a PR to fix it. + ## Philosophy `stop-nagging` is designed to be a fast, simple, and effective tool for disabling nags and warnings. Running `stop-nagging` should be a no-op and it should not modify the source code. Some tools might require configuration changes to stop nagging, we will not modify the source code to do this. @@ -16,19 +19,23 @@ Head over to [`tools.yaml`](tools.yaml) to see the list of supported tools. ### Quick Install (Linux/macOS) + + ```bash curl -s https://raw.githubusercontent.com/bodo-run/stop-nagging/main/scripts/install_stop_nagging.sh | bash ``` -Then add `~/.local/bin` to your PATH if not already. + ### Quick Install (Windows) 1. Download and run the PowerShell installer script: + ```powershell # Example in PowerShell iwr https://raw.githubusercontent.com/bodo-run/stop-nagging/main/scripts/install_stop_nagging.ps1 -UseBasicParsing | iex ``` + 2. If needed, add the installation directory (default: `$HOME\.local\bin`) to your PATH. ### From Source diff --git a/tools.yaml b/tools.yaml index 123417f..0bd4a86 100644 --- a/tools.yaml +++ b/tools.yaml @@ -65,25 +65,25 @@ ecosystems: commands: [] skip: false - frameworks: - check_ecosystem: "command -v next >/dev/null 2>&1 || command -v gatsby >/dev/null 2>&1 || command -v ng >/dev/null 2>&1" + js_frameworks: + check_ecosystem: "command -v node_modules/.bin/next >/dev/null 2>&1 || command -v node_modules/.bin/gatsby >/dev/null 2>&1 || command -v node_modules/.bin/ng >/dev/null 2>&1" tools: - name: "next" - executable: "next" + executable: "node_modules/.bin/next" env: NEXT_TELEMETRY_DISABLED: "1" commands: [] skip: false - name: "gatsby" - executable: "gatsby" + executable: "node_modules/.bin/gatsby" env: GATSBY_TELEMETRY_DISABLED: "1" commands: [] skip: false - name: "angular" - executable: "ng" + executable: "node_modules/.bin/ng" env: NG_CLI_ANALYTICS: "false" commands: