lpil / lpil/gleescript

Idea: add a --module flag

Open
#14 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Gleam
Stars
121
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Background, I'm doing some testing with https://github.com/jepsen-io/maelstrom and it requires a binary to execute. gleescript is working well to package the escript and run it with maelstrom. However, if I want to test different services I have to modify my `src/{project}.gleam` main function and create a new executable script. It would be cool if I could get effectively `gleam run -m my_module` (with its own main function) with gleescript via a `--module` flag (or something).

No worries if this is uninteresting. I'm able to proceed without it.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the existing gleescript command-line options and executable-packaging flow, then compare the requested behavior with the Gleam project's `src/{project}.gleam` main function and the `gleam run -m my_module` example. Done means a `--module` option can select an alternate module with its own main function when producing an executable.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.