fix(cd): make cd use new usecases
continuous-integration/drone/pr Build is failing

This commit is contained in:
2024-03-29 21:08:59 +01:00
parent cca7b29a6d
commit d69106adeb
8 changed files with 33 additions and 16 deletions
@@ -0,0 +1,23 @@
// Copyright (C) 2024 WYATT GROUP
// Please see the AUTHORS file for details.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
import 'dart:io';
import 'package:wyatt_continuous_deployment_example/main.dart';
void main(List<String> args) {
WyattContinuousDeploymentExample.run(args).then((_) => exit(0));
}
@@ -20,7 +20,7 @@ class WyattContinuousDeploymentExample {
static Future<void> run(List<String> args) async {
const useCase = CheckToolsUsecase();
final result = await useCase(null);
final result = await useCase();
result.fold((value) => print('Success'), (error) => print('Error: $error'));
}