Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include both shell and ps1 entrypoint scripts with gleam export erlang-shipment #4360

Open
Ummon opened this issue Mar 16, 2025 · 1 comment
Labels
good first issue Good for newcomers help wanted Contributions encouraged priority:medium

Comments

@Ummon
Copy link
Contributor

Ummon commented Mar 16, 2025

On Windows when the command gleam export erlang-shipment is used a PowerShell script is generated as /build/erlang-shipment/entrypoint.ps1. It would be interesting to be able to choose the type of script, for example if you develop on Windows and deploy to Linux.

I propose to add a parameter to set the script type:

 gleam export erlang-shipment --entry-point-language <SCRIPT_LANG>

where <SCRIPT_LANG> can be "powershell" or "bash".

The default behavior (without the parameter) wouldn't be modified.

I can make the changes myself and propose a PR.

@lpil
Copy link
Member

lpil commented Mar 16, 2025

Let's always render both!

@lpil lpil changed the title Add a way to choose the type of entrypoint file with gleam export erlang-shipment Include both shell and ps1 entrypoint scripts with gleam export erlang-shipment Mar 16, 2025
@lpil lpil added help wanted Contributions encouraged good first issue Good for newcomers priority:medium labels Mar 16, 2025
Ummon added a commit to Ummon/gleam that referenced this issue Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Contributions encouraged priority:medium
Projects
None yet
Development

No branches or pull requests

2 participants