print queue progress

This commit is contained in:
yggverse 2025-11-11 20:27:22 +02:00
parent ed21836f13
commit f19ab43390

View file

@ -193,6 +193,21 @@ class Cli
) )
); );
{
$count = count($this->source); // calculate shared value once
print(
Message::yellow(
sprintf(
_("\tleft: %d/%d total (%d processed)"),
$count - $offset,
$count,
$offset
)
)
);
}
// Crawl next address... // Crawl next address...
if ($this->option->crawl) if ($this->option->crawl)
{ {
@ -309,6 +324,21 @@ class Cli
) )
); );
{
$count = count($this->source); // calculate shared value once
print(
Message::magenta(
sprintf(
_("\tleft: %d/%d total (%d processed)"),
$count - $offset,
$count,
$offset
)
)
);
}
// Set data mode // Set data mode
$raw = ($this->option->raw || !str_contains((string) $response->getMeta(), 'text/gemini')); $raw = ($this->option->raw || !str_contains((string) $response->getMeta(), 'text/gemini'));