You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -115,6 +130,7 @@ class VeryGoodCommandRunner extends CompletionCommandRunner<int> {
115
130
if (topLevelResults.command?.name !=UpdateCommand.commandName) {
116
131
await_checkForUpdates();
117
132
}
133
+
_showThankYou();
118
134
return exitCode;
119
135
}
120
136
@@ -134,4 +150,39 @@ Run ${lightCyan.wrap('very_good update')} to update''',
134
150
}
135
151
} catch (_) {}
136
152
}
153
+
154
+
void_showThankYou() {
155
+
if (environment.containsKey('CI')) return;
156
+
157
+
final versionFile =File(
158
+
path.join(_configDir.path, 'version'),
159
+
)..createSync(recursive:true);
160
+
161
+
if (versionFile.readAsStringSync() == packageVersion) return;
162
+
versionFile.writeAsStringSync(packageVersion);
163
+
164
+
_logger.wrap(
165
+
lightMagenta.wrap('''
166
+
167
+
Thank you for using Very Good Ventures open source tools!
168
+
Don't forget to fill out this form to get information on future updates and releases here: ${lightBlue.wrap(link(uri: Uri.parse('https://verygood.ventures/open-source/cli/subscribe-latest-tool-updates')))}'''),
169
+
print: _logger.info,
170
+
);
171
+
}
172
+
173
+
Directoryget _configDir {
174
+
if (_isWindows) {
175
+
// Use localappdata on windows
176
+
final localAppData = environment['LOCALAPPDATA']!;
0 commit comments