Skip to content

Commit

Permalink
moved the 'Configure OnePub' prompt to only be displayed in dev mode …
Browse files Browse the repository at this point in the history
…as its only required then.
  • Loading branch information
bsutton committed May 25, 2023
1 parent e579c2b commit b184325
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/onepub_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ class OnePubSettings {

///
void config({required bool dev}) {
print('Configure OnePub');

promptForConfig(dev: dev);
}

Expand All @@ -279,6 +277,7 @@ class OnePubSettings {
void promptForConfig({required bool dev}) {
var url = OnePubSettings.defaultOnePubUrl;
if (dev) {
print('Configure OnePub');
url = ask('OnePub URL:', validator: UrlValidator(), defaultValue: url);
testingFlagPath.write('onepubtesting');
}
Expand Down

0 comments on commit b184325

Please sign in to comment.