From c3e651440f88db6b2e8207c8f680f6733710e46f Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Sun, 30 Oct 2022 18:38:43 +0100 Subject: [PATCH] Added bin to list datasets --- bin/dataset-info | 20 ++++++++++++++++++++ composer.json | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 bin/dataset-info diff --git a/bin/dataset-info b/bin/dataset-info new file mode 100755 index 0000000..6cf73bf --- /dev/null +++ b/bin/dataset-info @@ -0,0 +1,20 @@ +#!/usr/bin/env php +getAvailableDatasets(); + +foreach ($datasets as $dataset) { + echo $dataset->getIdentifier()."\n"; +} diff --git a/composer.json b/composer.json index fcf2ede..110e8c7 100644 --- a/composer.json +++ b/composer.json @@ -14,5 +14,6 @@ "email": "cvagnetoft@gmail.com" } ], - "require": {} + "require": {}, + "bin": [ "bin/dataset-info" ] }