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

Scriptlet autodiscovery #77

Open
nikolay opened this issue Sep 19, 2023 · 0 comments
Open

Scriptlet autodiscovery #77

nikolay opened this issue Sep 19, 2023 · 0 comments

Comments

@nikolay
Copy link

nikolay commented Sep 19, 2023

One tradeoff I have to do using run is that I can't autoformat scripts, make linters run properly, etc. It would be pretty bad just to put all commands in separate script files and just declare them in Runfile as this way, parameters, and code will be in two different files.

I suggest adding a way to include/import scripts by using wildcards or directories. Ideally, the folder hierarchy could be used to prefix the commands, i.e., scripts in the terraform folder will automatically prefix with contained commands with terraform-, so ./terraform/lock.sh would be terraform-lock. The manifest in comments could be searched for after the optional shebang.

This way, not having a grammar for Runfile files won't be such a big deal as the vast majority of the code will be simply shell scripts.

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

No branches or pull requests

1 participant