I do have a script with check the format/style of the files. We used to run it on all elements every night using sort of night_script.
Now I want to add it to a preop trigger for checkin command. To do that per file(s) a switch is needed. How could I do so?
Example of how the script runs:
style_check -f file1 [file2 ... fileN]
I found this trigger creation command while searching but I don't know how to customize it :)
#execute a script on all text files after checkin:
ct mktrtype -element -all -preop checkin -eltype text_file -exec <path to script> PROCESS_CHECKIN