info('Inizio esecuzione.'); $firstDay = date('Y-m-01'); // First day of the current month $lastDay = date('Y-m-t'); // Last day of the current month $this->info('Export da ' . $firstDay .' a '. $lastDay ); $calculate_agent_cost = true; $third_party_integrations_allow = true; $third_party_integrations_nextcloud = true; $third_party_integrations_open_project = false; $email_send_allow = true; $this->info( 'Le seguenti opzioni sono attive ' . ' calculate_agent_cost '. $calculate_agent_cost . '\n' . ' third_party_integrations_allow '. $third_party_integrations_allow . '\n' . ' third_party_integrations_nextcloud '. $third_party_integrations_nextcloud . '\n' . ' third_party_integrations_open_project '. $third_party_integrations_open_project . '\n' . ' email_send_allow '. $email_send_allow . '\n' ); $gitea_export = new GiteaExport( $calculate_agent_cost, $third_party_integrations_allow, $third_party_integrations_nextcloud, $third_party_integrations_open_project, $email_send_allow, ); $gitea_export->export_issues($firstDay, $lastDay, ['state' => 'closed']); return Command::SUCCESS; } }