onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
236 stars 26 forks source link

Consider change `AskValidator.validate()` result type `String` to `Future<String>` ? #164

Closed Hu-Wentao closed 2 years ago

Hu-Wentao commented 2 years ago

Some Validator need network, It can only be Future

bsutton commented 2 years ago

Just wrap your call in waitForEx and the future goes away.

On Sat, 2 Oct 2021, 12:52 am 胡文涛, @.***> wrote:

Some Validator need network, It can only be Future

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/noojee/dcli/issues/164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32ODQ4PAEHQW7X5GQCQLUEXDMDANCNFSM5FE34BKA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Hu-Wentao commented 2 years ago

dcli is too powerful, haha