fix(wyatt_cd): export all the needed layers from wyatt_cd
This commit is contained in:
parent
0a3f0094c4
commit
1c94f5f2ca
@ -1,23 +1,18 @@
|
||||
// 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';
|
||||
import 'package:wyatt_continuous_deployment/wyatt_continuous_deployment.dart';
|
||||
|
||||
void main(List<String> args) {
|
||||
WyattContinuousDeploymentExample.run(args).then((_) => exit(0));
|
||||
Future<void> main(List<String> args) async {
|
||||
await bootstrap();
|
||||
await flushThenExit(await WyattContinuousDeploymentCommandRunner().run(args));
|
||||
}
|
||||
|
||||
/// Flushes the stdout and stderr streams, then exits the program with the given
|
||||
/// status code.
|
||||
///
|
||||
/// This returns a Future that will never complete, since the program will have
|
||||
/// exited already. This is useful to prevent Future chains from proceeding
|
||||
/// after you've decided to exit.
|
||||
Future<dynamic> flushThenExit(int status) =>
|
||||
Future.wait<void>([stdout.close(), stderr.close()])
|
||||
.then<void>((_) => exit(status));
|
||||
|
@ -1,27 +0,0 @@
|
||||
// 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 'package:wyatt_continuous_deployment/wyatt_continuous_deployment.dart';
|
||||
|
||||
class WyattContinuousDeploymentExample {
|
||||
static Future<void> run(List<String> args) async {
|
||||
const useCase = CheckToolsUsecase();
|
||||
|
||||
final result = await useCase();
|
||||
|
||||
result.fold((value) => print('Success'), (error) => print('Error: $error'));
|
||||
}
|
||||
}
|
@ -2,30 +2,21 @@ name: wyatt_continuous_deployment_example
|
||||
description: A new Flutter project.
|
||||
version: 1.0.0
|
||||
|
||||
publish_to: 'none'
|
||||
publish_to: "none"
|
||||
|
||||
environment:
|
||||
sdk: ">=3.0.0 <4.0.0"
|
||||
|
||||
dependencies:
|
||||
|
||||
|
||||
|
||||
wyatt_continuous_deployment:
|
||||
path: "../"
|
||||
|
||||
dev_dependencies:
|
||||
|
||||
|
||||
|
||||
test: ^1.21.0
|
||||
|
||||
|
||||
|
||||
|
||||
wyatt_analysis:
|
||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||
version: ^2.6.1
|
||||
|
||||
|
||||
|
||||
executables:
|
||||
wyatt_continuous_deployment_example: bin/wyatt_continuous_deployment_example.dart
|
||||
|
@ -1,18 +0,0 @@
|
||||
// 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/>.
|
||||
|
||||
// TODO(mleon): export all layers
|
||||
export '';
|
@ -17,5 +17,8 @@
|
||||
/// Wyatt CD
|
||||
library wyatt_continuous_deployment;
|
||||
|
||||
export './src/bootstrap.dart';
|
||||
export './src/core/core.dart';
|
||||
export './src/domain/domain.dart';
|
||||
export './src/version.dart';
|
||||
export './src/wyatt_continuous_deployment_command_runner.dart';
|
||||
|
Loading…
x
Reference in New Issue
Block a user