Can I use Mask to create an entire shell script (or executable) from the markdown file? #107
Replies: 1 comment 2 replies
-
Hey! This is similar to mask's very first issue #1 But instead of generating an all-in-one binary, mask would generate a bash script that knows the command tree structure and how to execute the various script types. So maskfile.md would become an authoring format for bash scripts. However, if mask went down that path, all of mask's features would likely have to be duplicated in bash. And then we'd probably get followup requests to generate outputs for zsh/fish/etc... script types, so I think this would get a bit unwieldy to maintain. If anyone chooses to build a 3rd party |
Beta Was this translation helpful? Give feedback.
-
Amazing work on this tool. I just found it today so I have a lot to learn about it. I can think of so many uses for it in my personal and professional life.
I have an idea for a feature that you might like
The problem
mask
, on their systemsmask <mycommand>
My idea for a solution
mask generate foo.sh
should output a shell scriptmask generate foo.sh
triggered on precommit, or release, or etc.foo.sh
can even commit to the repo, saving an end user the time of generating it themselves, and they can just cherry-pick the script if they wantThen I wouldn't have to convince anyone to do
brew install mask
or runmask foo
, they can just run./foo.sh
natively. All the while, I (the author of the repo) got all the benefits of Mask while developing the script.Beta Was this translation helpful? Give feedback.
All reactions