Skip to content

Refactor README.md for improved formatting and clarity of available c… - #24

Closed
terjeinnerdal wants to merge 3 commits into
mainfrom
feature/unit_test_repository
Closed

Refactor README.md for improved formatting and clarity of available c…#24
terjeinnerdal wants to merge 3 commits into
mainfrom
feature/unit_test_repository

Conversation

@terjeinnerdal

@terjeinnerdal terjeinnerdal commented Aug 8, 2026

Copy link
Copy Markdown
Owner

…ommands

Summary by CodeRabbit

  • New Features

    • Added a command-line script to display NordVPN connection status.
  • Documentation

    • Improved the NordVPN setup documentation with clearer headings, command examples, and a formatted command reference.
  • Configuration

    • Cleared the peer allowlists for local access, file sharing, and routing.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The PR reformats NordVPN documentation, adds a nordvpn status wrapper script, and clears the local access, file-sharing, and routing peer allowlists.

Changes

NordVPN updates

Layer / File(s) Summary
Status script and command documentation
bash/nord/README.md, bash/nord/status.sh
The README uses structured command and setup sections. status.sh runs nordvpn status.
Peer allowlist cleanup
bash/nord/peers.json
The local, file-sharing, and routing peer lists are empty.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the primary README formatting and command-clarity changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/unit_test_repository

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@bash/nord/README.md`:
- Line 33: Replace the malformed instruction in the README setup section with a
clear, grammatically correct description of the commands that follow, preserving
the existing command sequence and its intended setup context.
- Around line 20-29: Add status.sh to the installation flow in copy_scripts.sh
by copying it as nord_status, and add the corresponding nord_status entry to the
README Available Commands table describing its status functionality; only remove
status.sh if it is intentionally not meant to be installed.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 51269f3e-c4c2-440c-808a-6af99a58adfa

📥 Commits

Reviewing files that changed from the base of the PR and between 30703f1 and ce64ed2.

📒 Files selected for processing (3)
  • bash/nord/README.md
  • bash/nord/peers.json
  • bash/nord/status.sh

Comment thread bash/nord/README.md
Comment on lines +20 to +29
| Local File | Installed Global Command | Description |
|:-----------|:-------------------------|:---|
| `login.sh` | `nord_login` | Authenticate with NordVPN |
| `logout.sh` | `nord_logout` | Log out of NordVPN |
| `config.sh` | `nord_config` | Configure NordVPN routing and settings |
| `connect.sh` | `nord_connect <peer>` | Connect to a Meshnet peer |
| `exit_node.sh` | `nord_exit_node <peer>` | Set a peer as your exit node |
| `list_peers.sh` | `nord_list_peers` | List available Meshnet peers |
| `set_nickname.sh` | `nord_set_nickname` | Set a local nickname for the device |
| `reset.sh` | `nord_reset` | Reset NordVPN settings to defaults |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 3 'status\.sh|nord_status|copy_scripts' bash/nord
git ls-files --stage -- bash/nord/status.sh

Repository: terjeinnerdal/scripts

Length of output: 487


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'README relevant lines:\n'
nl -ba bash/nord/README.md | sed -n '1,80p'

printf '\nScripts and copy_scripts contents:\n'
for f in bash/nord/login.sh bash/nord/logout.sh bash/nord/config.sh bash/nord/connect.sh bash/nord/exit_node.sh bash/nord/list_peers.sh bash/nord/set_nickname.sh bash/nord/reset.sh bash/nord/status.sh bash/nord/copy_scripts.sh; do
  if [ -f "$f" ]; then
    echo "--- $f"
    nl -ba "$f" | sed -n '1,220p'
  else
    echo "missing $f"
  fi
done

Repository: terjeinnerdal/scripts

Length of output: 222


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'README relevant lines:\n'
awk '{printf "%6d\t%s\n", NR, $0}' bash/nord/README.md | sed -n '1,80p'

printf '\nScripts and copy_scripts contents:\n'
for f in bash/nord/login.sh bash/nord/logout.sh bash/nord/config.sh bash/nord/connect.sh bash/nord/exit_node.sh bash/nord/list_peers.sh bash/nord/set_nickname.sh bash/nord/reset.sh bash/nord/status.sh bash/nord/copy_scripts.sh; do
  if [ -f "$f" ]; then
    echo "--- $f"
    awk '{printf "%6d\t%s\n", NR, $0}' "$f" | sed -n '1,220p'
  else
    echo "missing $f"
  fi
done

Repository: terjeinnerdal/scripts

Length of output: 18866


Add status.sh to the installation and command list.

copy_scripts.sh copies each .sh script to ~/.local/bin/nord_*. status.sh exists but is never copied or documented, so nord_status is unavailable even though command scripts should all be listed here. Add cp status.sh ~/.local/bin/nord_status in bash/nord/copy_scripts.sh and add the matching row to the Available Commands table, or remove status.sh if it is not intended to be installed.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@bash/nord/README.md` around lines 20 - 29, Add status.sh to the installation
flow in copy_scripts.sh by copying it as nord_status, and add the corresponding
nord_status entry to the README Available Commands table describing its status
functionality; only remove status.sh if it is intentionally not meant to be
installed.

Comment thread bash/nord/README.md

## Setup Examples

Get a beautiful naighbour, love her, proposed to her, go puse for

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Replace the malformed setup instruction.

Line 33 is not a usable instruction and contains spelling and grammar errors. Replace it with a clear description of the following commands.

Proposed fix
-Get a beautiful naighbour, love her, proposed to her, go puse for
+Use the following commands to configure an exit node and connect to a peer:
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Get a beautiful naighbour, love her, proposed to her, go puse for
Use the following commands to configure an exit node and connect to a peer:
🧰 Tools
🪛 LanguageTool

[grammar] ~33-~33: Ensure spelling is correct
Context: ...s | ## Setup Examples Get a beautiful naighbour, love her, proposed to her, go puse for...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@bash/nord/README.md` at line 33, Replace the malformed instruction in the
README setup section with a clear, grammatically correct description of the
commands that follow, preserving the existing command sequence and its intended
setup context.

Source: Linters/SAST tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant