pub fn run_stat_command( view: Option<&str>, session: Option<&str>, options: StatCommandOptions, now: DateTime<Utc>, ) -> Result<String, AppError>