refreshAwsAuth function
Refresh AWS auth (exposed for direct use).
Implementation
Future<bool> refreshAwsAuth(String awsAuthRefresh) async {
try {
final result = await Process.run(
Platform.isWindows ? 'cmd' : 'sh',
Platform.isWindows ? ['/c', awsAuthRefresh] : ['-c', awsAuthRefresh],
);
return result.exitCode == 0;
} catch (e) {
stderr.writeln('Error running awsAuthRefresh: $e');
return false;
}
}