From 499df024724eb024509563572ecc788e2ce9e4b9 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Thu, 10 Nov 2022 11:35:53 +0100 Subject: [PATCH] Removed DSH dependency. --- dub.json | 1 - dub.selections.json | 1 - source/app.d | 5 +++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dub.json b/dub.json index 92d353a..8fe6473 100644 --- a/dub.json +++ b/dub.json @@ -4,7 +4,6 @@ ], "copyright": "Copyright © 2022, Andrew Lalis", "dependencies": { - "dsh": "~>1.6.1", "filesizes": "~>1.1.0", "progress": "~>5.0.2" }, diff --git a/dub.selections.json b/dub.selections.json index 6cb2bc6..1ef1824 100644 --- a/dub.selections.json +++ b/dub.selections.json @@ -1,7 +1,6 @@ { "fileVersion": 1, "versions": { - "dsh": "1.6.1", "filesizes": "1.1.0", "progress": "5.0.2" } diff --git a/source/app.d b/source/app.d index 504c37e..3f63344 100644 --- a/source/app.d +++ b/source/app.d @@ -1,6 +1,7 @@ -import dsh; import std.typecons; import std.path; +import std.file; +import std.stdio; import std.string; import std.algorithm; import std.getopt; @@ -55,7 +56,7 @@ int main(string[] args) { auto nullableGoProDir = getGoProDir(mediaSearchDir); if (nullableGoProDir.isNull) { - error("Couldn't find GoPro directory."); + writeln("Couldn't find GoPro directory."); return 1; } string goProDir = nullableGoProDir.get();