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
{{ message }}
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Consider types - integers and booleans at least #101
The http module allows a HTTP-status code to be matched, which looks odd as a string. Similarly file-permissions for the file module must currently be expressed as a string because we have no support for numeric types.
Additionally the shell module has a shell => "true" option, which could be a boolean. Although there's no obvious other place where that is used yet.
I think we should parse values as either strings or numbers. We don't necessarily need to make any changes to usage the "StringValue" can convert at run-time easily enough.
The conversion could happen in the parser, or later. But the end result would be that:
"mode" => 0755
Or
"expect" => 200
Would be synonymous with "mode => "0755" or "expect => "200".
Activity
alexwhitman commentedon Feb 13, 2022
There's also
force => "yes"in thedockermodule andupdate => "yes"in thepackagemodule which could also be booleans.skx commentedon Feb 13, 2022
Good catch, thanks!
101 types (#102)