MCPcopy Index your code
hub / github.com/StackStorm/st2 / main

Function main

tools/log_watcher.py:173–180  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

171
172
173def main(args):
174 params = _parse_args(args)
175 file_dir = params.get("dir", os.getcwd())
176 files = _get_files(file_dir)
177 matchers = _build_str_matchers()
178 for f in files:
179 _detect_log_lines(f, matchers)
180 _post_process(file_dir)
181
182
183if __name__ == "__main__":

Callers 1

log_watcher.pyFile · 0.70

Calls 6

_parse_argsFunction · 0.85
_get_filesFunction · 0.85
_build_str_matchersFunction · 0.85
_detect_log_linesFunction · 0.85
_post_processFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected