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

Add Gleam support #1122

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Add Gleam support #1122

merged 1 commit into from
Apr 5, 2024

Conversation

darky
Copy link
Contributor

@darky darky commented Apr 2, 2024

No description provided.

@@ -187,7 +187,8 @@
"mojo": "mojo run",
"erlang": "escript",
"spwn": "spwn build",
"pkl": "cd $dir && pkl eval -f yaml $fileName -o $fileNameWithoutExt.yaml"
"pkl": "cd $dir && pkl eval -f yaml $fileName -o $fileNameWithoutExt.yaml",
"gleam": "gleam run -m $fileNameWithoutExt"
Copy link
Owner

Choose a reason for hiding this comment

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

How is the folder structure? What if the file is not in the root? Will it still work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It only works for files on first level nesting: src/*.gleam
For deep nested files like: src/**/*.gleam it's not working
For able to work on deep nested level need to have some rare customized parameter like $relativeFileNameWithoutExtToFolder("src")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can try to implement some awk, sed magic, but I didn't see something similar for another programming languages.
Also I don't know, if it matters to implement new customized parameter for Gleam only

Copy link
Owner

Choose a reason for hiding this comment

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

It seems src/*.gleam is the pattern of gleam: https://gleam.run/writing-gleam/
So current way is OK to me.

@formulahendry formulahendry merged commit a8d06ca into formulahendry:master Apr 5, 2024
3 checks passed
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