proud-dentist-22844
05/17/2023, 6:04 AMfile_mode
field (for file permissions/mode)?
• int: file_mode=0o644
• str: file_mode="644"
• object: file_mode=perm(u=6, g=4, o=4)
• Something else?
Ultimately this will end up represented as an octal in yaml, when passing it to the underlying app.enough-analyst-54434
05/17/2023, 6:12 AMenough-analyst-54434
05/17/2023, 6:16 AMproud-dentist-22844
05/17/2023, 6:16 AMenough-analyst-54434
05/17/2023, 6:17 AMenough-analyst-54434
05/17/2023, 6:18 AMproud-dentist-22844
05/17/2023, 6:18 AMenough-analyst-54434
05/17/2023, 6:19 AMenough-analyst-54434
05/17/2023, 6:19 AMenough-analyst-54434
05/17/2023, 6:22 AMproud-dentist-22844
05/17/2023, 6:29 AMenough-analyst-54434
05/17/2023, 6:31 AMbroad-processor-92400
05/17/2023, 11:10 AMpermissions(u="rwx", ...)
function, or something), maybe as separate workcurved-television-6568
05/17/2023, 12:29 PMcompute_value
. If you promote string, with a syntax of "r-xr-xrwx"
for instance, that’s easy to read and write for a human while also offering to go int/octal for superusers. Validation on the str
value while accepting any int value. I agree with John, that validation ought not to be too restricting, only catching things that are absolute errors. Also -1 on object, I think. (could be a factory method added later if desired as Huon suggested, so the field still consumes str/int only)happy-kitchen-89482
05/17/2023, 3:02 PM