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
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:
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.
xonixx
added a commit
to pcrockett/makesure
that referenced
this issue
Nov 20, 2021
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!
xonixx
changed the title
Make @use_lib apply also to @reached_if
Make @use_lib apply also to @reached_ifNov 21, 2021
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
?The text was updated successfully, but these errors were encountered: