Check tasksched fixes misc 2#394
Conversation
add hidden argument to check, this is used while discovering tasks in the embedded powershell script directly. add debug to stderr calls for the folder,title, recursive and hidden parameters/args in the script add logic to remove trailing backslash in the folder path, is only removed if its not root path . this is needed due to new script using scheduler.service com tasks change the working_dir attribute to working_directory to match with existing check definitions
…tting specifications the converter looks for common booleanish strings like 'yes' , 'off' 'disabled' 'True' etc, and converts them to 'true' or 'false' . these are then string-compared to the values the check returns for these attributes. use the Ubool attribute type on check_tasksched attributes: enabled, has_run and hidden. it is not used anywhere else
hidden arg is default false in the script as well fix some other typos/dead code
update docs split up the addTasks function since it was getting too long, and had logical parts to be split others are spacing, linting fixes from golangci-lint
…duled embedded script
in reality, last run time is always not empty and has some default value
|
Output suggestion:
Also all values should be case-insensitive . |
Case insensitive regex is easy, but grouping the valid values in false/true meanings is a bit hard. I generate those messages by joining valid strings, and they are distinct in truthy falsey groups, and not zipped together |
|
Looks good to me now.
|
add hidden argument to check, this is used while discovering tasks in the embedded powershell script directly.
remove parameter/arg , powershell version, timer calls stderr print calls in the embedded powershell script
add logic to remove trailing backslash in the folder path, is only removed if its not root path . this is needed due to new script using scheduler.service com tasks
change the working_dir attribute to working_directory to match with existing check definitions
split up the addTasks function since it was getting too long, and had logical parts to be split
add default values of arguments to the attribute descriptions
regenerate docs
fix has_run attribute, now correctly checks if its not the default last_run_time
add UBool unit type to attributes, add converted for common boolean specifications
the converter looks for common booleanish strings like 'yes' , 'off' 'disabled' 'True' etc, and converts them to 'true' or 'false' . these are then string-compared to the values the check returns for these attributes. it also reports invalid UBool atribute definitions:
use the Ubool attribute type on check_tasksched attributes: enabled, has_run and hidden. it is not used anywhere else