From 87117f2e9e055d0104d3900537d27d0cb3dd6b28 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Sat, 4 Feb 2023 10:48:31 +0400 Subject: [PATCH] chore: Simplify file structure --- bin/main.dart | 4 ++-- lib/{funkblubber.dart => funkwhale.dart} | 0 lib/{parsing => }/parser.dart | 11 ++++++++++- lib/parsing/parsing_stage.dart | 9 --------- 4 files changed, 12 insertions(+), 12 deletions(-) rename lib/{funkblubber.dart => funkwhale.dart} (100%) rename lib/{parsing => }/parser.dart (98%) delete mode 100644 lib/parsing/parsing_stage.dart diff --git a/bin/main.dart b/bin/main.dart index d6fc23f..008508a 100644 --- a/bin/main.dart +++ b/bin/main.dart @@ -1,8 +1,8 @@ import 'dart:core'; -import 'package:funkblubber/funkblubber.dart' as funkblubber; +import 'package:funkblubber/funkwhale.dart' as funkblubber; import 'package:funkblubber/console.dart' as console; -import 'package:funkblubber/parsing/parser.dart' as parser; +import 'package:funkblubber/parser.dart' as parser; void main(final List arguments) async { final result = parser.extract(arguments); diff --git a/lib/funkblubber.dart b/lib/funkwhale.dart similarity index 100% rename from lib/funkblubber.dart rename to lib/funkwhale.dart diff --git a/lib/parsing/parser.dart b/lib/parser.dart similarity index 98% rename from lib/parsing/parser.dart rename to lib/parser.dart index 6c5e3d7..33e106f 100644 --- a/lib/parsing/parser.dart +++ b/lib/parser.dart @@ -1,12 +1,21 @@ import 'package:funkblubber/funkentity.dart'; import 'package:funkblubber/console.dart' as console; -import 'package:funkblubber/parsing/parsing_stage.dart'; enum Action { download, upload, } +enum ParsingStage { + nothing, + album, + artist, + track, + path, + upload, + domain, +} + class StageResult { StageResult({required this.result, required this.stage}); final ParseResult result; diff --git a/lib/parsing/parsing_stage.dart b/lib/parsing/parsing_stage.dart deleted file mode 100644 index 725ba7d..0000000 --- a/lib/parsing/parsing_stage.dart +++ /dev/null @@ -1,9 +0,0 @@ -enum ParsingStage { - nothing, - album, - artist, - track, - path, - upload, - domain, -}