Add programmatic and CLI hooks for triggering the file report