Skip to content

Show HN: Ec – a small tool to inline build commands in stand-alone source files

github.com/michaelfm1211
3 pointsmichaelfm12111 comment
On HN

Comments

So it's basically a hybrid of mode lines and Makefiles? Interesting idea. However, I can also see this conflicting with stuff like modelines. Maybe a unique prefix could help avoid this.

And just a heads up:

There must be no white space between the starting pattern (// or ##) and the command name.

This will not play nice with many if not most formatters, which tend to enforce a space (or in summer cases even two spaces). I think I'd consider removing this requirement.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.