heitorpolidoro / bartholomew-smith

Your butler for managing your GitHub repositories
https://bartholomew-smith.vercel.app
MIT License
1 stars 0 forks source link

Update `Config.call_if` #264

Open heitorpolidoro opened 2 months ago

heitorpolidoro commented 2 months ago

Replace the

if Config.batata:
  ...
else:
  sub_run.update("disabled"...)

for something like

@Config.call_if("batata", call_on_else=lambda: sub_run.update("disabled"...))
bartholomew-smith[bot] commented 2 months ago

Job's done