Skip to content

Add grid overlay options to CLI with usage examples - #3

Open
kodzonko wants to merge 2 commits into
tibiamaps:mainfrom
kodzonko:feature/add-macos-installer-options
Open

Add grid overlay options to CLI with usage examples#3
kodzonko wants to merge 2 commits into
tibiamaps:mainfrom
kodzonko:feature/add-macos-installer-options

Conversation

@kodzonko

@kodzonko kodzonko commented Jun 4, 2026

Copy link
Copy Markdown

Add command-line flags to allow users to download maps with different grid and marker configurations:

  • --grid: maps with grid overlay and markers
  • --grid-no-markers: maps with grid overlay without markers
  • --grid-poi-markers: maps with grid overlay and POI markers

Similar to what is available with Linux installer: https://github.com/tibiamaps/tibia-maps-installer-linux/blob/main/install-tibia-maps

This I suggested in issue: #2

Introduce new command-line flags to allow users to download maps with
different grid and marker configurations:
- `--grid`: maps with grid overlay and markers
- `--grid-no-markers`: maps with grid overlay without markers
- `--grid-poi-markers`: maps with grid overlay and POI markers

Update README.md with usage examples for the new options.
Copilot AI review requested due to automatic review settings June 4, 2026 01:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds additional download variants (grid overlay / POI markers) to the Tibia minimap installer and documents the new CLI flags.

Changes:

  • Replaced the if/else flag handling with a case statement to support more minimap variants.
  • Added README examples for --grid, --grid-no-markers, and --grid-poi-markers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
install-tibia-maps Expands CLI options and chooses the appropriate tibiamaps.io download URL via case.
README.md Documents the new installer flags with usage examples.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread install-tibia-maps Outdated
Comment thread install-tibia-maps
Comment on lines 27 to 29
zip_file_name="$(mktemp -t 'minimap-XXXXXX')";
curl --progress-bar --location "${url}" > "${zip_file_name}";
unzip -o -d "${DEST_DIR}" "${zip_file_name}";

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

keeping the original, unless requested by the author to change

Comment thread install-tibia-maps
;;
esac;
zip_file_name="$(mktemp -t 'minimap-XXXXXX')";
curl --progress-bar --location "${url}" > "${zip_file_name}";

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

keeping the original, unless requested by the author to change

@kodzonko

kodzonko commented Jun 4, 2026

Copy link
Copy Markdown
Author

@mathiasbynens could you review? I tested on my macos.

Update the macOS installation script to include a usage function and
proper argument handling for the new grid and marker options.
Also update the README to reflect the available command-line flags.
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.

2 participants