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";
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -14,5 +14,6 @@
 | 
				
			|||||||
            "email": "cvagnetoft@gmail.com"
 | 
					            "email": "cvagnetoft@gmail.com"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "require": {}
 | 
					    "require": {},
 | 
				
			||||||
 | 
					    "bin": [ "bin/dataset-info" ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user