standalone/listid.php

24 lines
462 B
PHP
Raw Normal View History

2019-04-12 15:40:27 +02:00
<?php
$search = isset($argv[1]) ? $argv[1] : 0;
require_once dirname(__FILE__).'/api/listid.php';
require_once dirname(__FILE__).'/shared/main.php';
consoleLogger(brand('listid'));
$ids = uupListIds($search);
if(isset($ids['error'])) {
throwError($ids['error']);
}
foreach($ids['builds'] as $val) {
echo $val['build'];
echo '|';
echo $val['arch'];
echo '|';
echo $val['uuid'];
echo '|';
echo $val['title'];
echo "\n";
}
?>