Added bin to list datasets
This commit is contained in:
		
							
								
								
									
										20
									
								
								bin/dataset-info
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								bin/dataset-info
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#!/usr/bin/env php
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
foreach ([
 | 
			
		||||
    __DIR__."/../vendor",
 | 
			
		||||
    __DIR__."/../../../vendor"
 | 
			
		||||
] as $dir) {
 | 
			
		||||
    if (file_exists($dir."/autoload.php")) {
 | 
			
		||||
        require_once $dir."/autoload.php";
 | 
			
		||||
        echo $dir."\n";
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
$datasetManager = new NoccyLabs\Dataset\DatasetManager();
 | 
			
		||||
 | 
			
		||||
$datasets = $datasetManager->getAvailableDatasets();
 | 
			
		||||
 | 
			
		||||
foreach ($datasets as $dataset) {
 | 
			
		||||
    echo $dataset->getIdentifier()."\n";
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user