| ▲ | throwaway290 7 hours ago | |||||||||||||||||||||||||
> I have definitelly crossed the line where writing a script makes sense ...and that was also the one concrete example where it makes sense to have extra dependency and abstraction layer on top of a shell script:) say you know TS and even if you walk back to where $ is defined, can you tell immediately why $`ls {dir}` gets executed and not just logged? | ||||||||||||||||||||||||||
| ▲ | supernes 7 hours ago | parent [-] | |||||||||||||||||||||||||
You can make it more explicit by renaming the import to something like "shell_exec". Tagged templates are already pretty common in TS projects for things like gql or sql queries. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||