From d68dcc21223be54eec14e439b2cf35ee3c9ac8b8 Mon Sep 17 00:00:00 2001 From: meza Date: Tue, 25 Oct 2022 19:37:23 +0100 Subject: [PATCH] feat: added a link to the version-accurate help page --- .github/workflows/ci.yml | 1 + scripts/prepare.sh | 3 +-- src/__snapshots__/mmm.test.ts.snap | 3 ++- src/env.ts | 1 + src/mmm.ts | 2 ++ 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 184e7838..99722d42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,6 +81,7 @@ jobs: - name: 🚀 Build & Release env: + HELP_URL: ${{github.server_url}}/${{github.repository}}/blob/${{github.sha}}/README.md CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }} MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/scripts/prepare.sh b/scripts/prepare.sh index a7c74da4..5fdb8fe0 100755 --- a/scripts/prepare.sh +++ b/scripts/prepare.sh @@ -3,8 +3,6 @@ FILE=$1 VERSION=$2 -echo "HELP URL: $HELP_URL" - cat > "$FILE" < { const commands = []; program.name(APP_NAME).version(version).description(APP_DESCRIPTION); +program.addHelpText('after', '\nFor more information, visit: ' + helpUrl); program.on('option:quiet', () => { logger.flagQuiet();