- Code: Select all
success = yes
failed = no
is more readable than:
- Code: Select all
success = true
failed = false
Any way to do this type of keyword substitution in Cobra?
Thanks!
success = yes
failed = no
success = true
failed = false
extend Object
def yes as bool
return true
def no as bool
return false
# ...
success = .yes
Users browsing this forum: No registered users and 52 guests