From b2afe5787a5b8684223d7dadfdf31b9c44409228 Mon Sep 17 00:00:00 2001 From: futabooo Date: Sun, 24 Nov 2024 18:39:27 +0900 Subject: [PATCH] example use local --- example/local/bin/local.dart | 3 ++- example/local/pubspec.yaml | 4 +++- example/server-shelf/pubspec.yaml | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/example/local/bin/local.dart b/example/local/bin/local.dart index b39ae47..e6c2c6a 100644 --- a/example/local/bin/local.dart +++ b/example/local/bin/local.dart @@ -40,7 +40,7 @@ class FetchCommand extends Command with RemoFinder { final client = NatureRemoLocalApiClient(address: address); final infraredSignal = await client.getMessages(); print('newest received IR signal ${infraredSignal.toJson()}'); - stdout.writeln('newest received IR signal ${infraredSignal.toJson()}'); + exitCode = 1; } } @@ -71,6 +71,7 @@ class EmitCommand extends Command with RemoFinder { } final client = NatureRemoLocalApiClient(address: address); client.postMessages(infraredSignal: infraredSignal); + exitCode = 1; } } diff --git a/example/local/pubspec.yaml b/example/local/pubspec.yaml index 0935495..ff1d8c7 100644 --- a/example/local/pubspec.yaml +++ b/example/local/pubspec.yaml @@ -1,6 +1,7 @@ name: local description: A simple command-line application. version: 1.0.0 +publish_to: none # homepage: https://www.example.com environment: @@ -9,7 +10,8 @@ environment: dependencies: args: ^2.3.0 multicast_dns: ^0.3.1 - nature_remo: ^0.2.0 + nature_remo: + path: ../../ dev_dependencies: lints: ^1.0.0 diff --git a/example/server-shelf/pubspec.yaml b/example/server-shelf/pubspec.yaml index 5702be7..b8ec29b 100644 --- a/example/server-shelf/pubspec.yaml +++ b/example/server-shelf/pubspec.yaml @@ -8,7 +8,8 @@ dependencies: args: ^2.0.0 shelf: ^1.1.0 shelf_router: ^1.0.0 - nature_remo: ^0.2.0 + nature_remo: + path: ../../ dev_dependencies: lints: ^1.0.0