mkasberg / script-seed

🌱 Seed scripts for popular (& unpopular) scripting languages.
https://mkasberg.github.io/script-seed/
MIT License
11 stars 23 forks source link

Add a seed script in any new language #49

Open mkasberg opened 4 years ago

mkasberg commented 4 years ago

Open a pull request to add a sample script for any scripting language we don't already have. See examples at https://mkasberg.github.io/script-seed. For a language to be included, it needs to be executable as a script (i.e. with a #! shebang) on Ubuntu Linux (after installing required dependencies), and it needs to be able to parse basic command line arguments (like -h). See the existing scripts for examples.

Complete instructions for adding a new language are available in CONTRIBUTING. Feel free to ask if you need help getting the tests working. Also, feel free to open an issue proposing the new language you want to add, and we can work through details before you start if you'd like.

If you want to write a language that we already have, consider improving the existing script instead. (We don't want duplicates.) I'm happy to merge substantive improvements (even if they're small), but I'm not interested in useless text changes (like renaming plant to tree).

As a rough example, see #26.

paymin commented 4 years ago

How about Golang? I would like to create it

mkasberg commented 4 years ago

Yes, it looks like a Golang script should be possible with the help of the gorun utility to run the go file as a script. I'd be happy to merge a PR that adds a sample Golang script.