You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now I always use them as ~/bin/generic.mjs or ~/bin/topic/foo.mjs.
I wanted to know what would be the recommended way to group everything related to a specific topic under a single CLI entrypoint, so that I could do something like:
~/bin/topic --help # lists all commands
~/bin/topic foo --foo=bar # spawn foo.mjs by propagating all params
~/bin/topic bar
Are there any examples of such patterns? Is it something that zx wants to solve, or isn't it in its scope?
Bonus: how could I then share these scripts with my coworkers? (i.e: have a shared Git repo we could pull and add to our path)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have developed a bunch of scripts that sits in local folders on my machine:
For now I always use them as
~/bin/generic.mjs
or~/bin/topic/foo.mjs
.I wanted to know what would be the recommended way to group everything related to a specific topic under a single CLI entrypoint, so that I could do something like:
Are there any examples of such patterns? Is it something that
zx
wants to solve, or isn't it in its scope?Bonus: how could I then share these scripts with my coworkers? (i.e: have a shared Git repo we could pull and add to our path)
Beta Was this translation helpful? Give feedback.
All reactions