Closed pcrockett closed 2 years ago
Hi @pcrockett. I'm glad that you found the tool useful for your needs. Definitely what you propose makes sense, the current behavior is indeed inconsistent. I'm especially greatful for your pull request. I will check it soon.
Thanks you once again @pcrockett. The PR is merged with minor improvements by me. Btw I encountered one other bug thanks to this report (#78). Once fixed - I'll release the new version. Stay tuned!
I have found makesure to be a really helpful way to document my laptop configurations in such a way that, when my laptop dies, I can easily reconfigure a new one with a single
makesure
command.Here's a small example of the kind of Makesurefile I'm writing:
My actual Makesurefile already has dozens of goals in it, many of them very similar to the
iptables_persistent_installed
goal above.As it is now, I can't actually do
@reached_if service_exists iptables
because@use_lib
doesn't apply there. Instead I have to manually copy / paste / modify my@reached_if
statements to include the full command, like so:That gets messy really quickly. The best workaround I have is also pretty ugly, but it's better than nothing:
Is it possible to make our libs usable from within
@reached_if
?