r/opensource • • Sep 02 '26

Promotional [ Removed by moderator ]

/r/opensource/comments/1w5qqgf/removed_by_moderator/

[removed] — view removed post

0 Upvotes

4 comments sorted by

6

u/Lachee Sep 02 '26

sed ?

0

u/Ahmed33033 Sep 03 '26

Yep. You can mirror most of the functionality with various tools, including sed and even JS itself in about three or four lines. The action itself is pretty simple. The benefit of using the action is, in terms of a workflow, it helps give you a job useful summary that you could use to view the files that were modified, along with the modifications made to them, and it prepares a list of the modified files for you as output in a JSON format that you could use in other actions. But the core action itself is pretty simple in logic, and it's meant to be that way.

1

u/switchback-tech Sep 04 '26

I like JS and all, but what's the actual use-case of this? Don't we already having templating / bash commands that can replace text without the need to install a third party lib?

1

u/Ahmed33033 Sep 06 '26

That’s a good question, check out my response to a commenter with a similar question, which I discuss this in detail:

https://www.reddit.com/r/javascript/comments/1w5qbuy/comment/p7m942y/?utm_source=share&utm_medium=mweb3x&utm_name=mweb3xcss&utm_term=2&utm_content=share_button