WIP on document conversion

This commit is contained in:
danieljsummers committed 2024-05-30 21:58:54 -04:00
1 parent cfa56ec44f
commit df20936af2
34 files changed
+674 -204

No files matched your search

+7 -4
View File
@@ -1,5 +1,7 @@
<?php
use JetBrains\PhpStorm\NoReturn;
use FeedReaderCentral\Data;
use FeedReaderCentral\Feed;
require __DIR__ . '/../cli-start.php';
@@ -20,15 +22,16 @@ switch ($argv[1]) {
/**
* Display the options for this utility and exit
*/
#[NoReturn]
function display_help(): void {
function display_help(): never
{
printfn('Options:');
printfn(' - all');
printfn(' Refreshes all feeds');
exit(0);
}
function refresh_all(): void {
function refresh_all(): void
{
$db = Data::getConnection();
try {