Compare commits
No commits in common. "fix/wyatt_cd/export_layers" and "master" have entirely different histories.
fix/wyatt_
...
master
@ -1,18 +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 'dart:io';
|
||||||
|
|
||||||
import 'package:wyatt_continuous_deployment/wyatt_continuous_deployment.dart';
|
import 'package:wyatt_continuous_deployment_example/main.dart';
|
||||||
|
|
||||||
Future<void> main(List<String> args) async {
|
void main(List<String> args) {
|
||||||
await bootstrap();
|
WyattContinuousDeploymentExample.run(args).then((_) => exit(0));
|
||||||
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));
|
|
||||||
|
27
packages/wyatt_continuous_deployment/example/lib/main.dart
Normal file
27
packages/wyatt_continuous_deployment/example/lib/main.dart
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
// 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,21 +2,30 @@ name: wyatt_continuous_deployment_example
|
|||||||
description: A new Flutter project.
|
description: A new Flutter project.
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
|
||||||
publish_to: "none"
|
publish_to: 'none'
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
wyatt_continuous_deployment:
|
wyatt_continuous_deployment:
|
||||||
path: "../"
|
path: "../"
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
test: ^1.21.0
|
test: ^1.21.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
wyatt_analysis:
|
wyatt_analysis:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^2.6.1
|
version: ^2.6.1
|
||||||
|
|
||||||
executables:
|
|
||||||
wyatt_continuous_deployment_example: bin/wyatt_continuous_deployment_example.dart
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +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/>.
|
||||||
|
|
||||||
|
// TODO(mleon): export all layers
|
||||||
|
export '';
|
@ -17,8 +17,5 @@
|
|||||||
/// Wyatt CD
|
/// Wyatt CD
|
||||||
library wyatt_continuous_deployment;
|
library wyatt_continuous_deployment;
|
||||||
|
|
||||||
export './src/bootstrap.dart';
|
|
||||||
export './src/core/core.dart';
|
export './src/core/core.dart';
|
||||||
export './src/domain/domain.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