showUserConfig static method
void
showUserConfig()
Implementation
static void showUserConfig() {
final config = Config().config;
final configPath = Config().configPath.trim();
final flutterPath =
config.flutterPath?.trim() ?? "No Custom Flutter Path Found";
print('\n🔧 Current Configuration Overview\n');
print('${getStatusEmoji(configPath.isNotEmpty)} Configuration File Path:');
print(
' ${highlight(configPath.isNotEmpty ? configPath : "No configuration file path specified.")}\n');
print('${getStatusEmoji(flutterPath.isNotEmpty)} Flutter Path:');
print(' ${highlight(flutterPath)}\n');
print('☁️ Upload Options:');
print(' GitHub:');
print(
' ${getStatusEmoji(config.uploadOptions.github.enabled)} Enabled: ${highlight(config.uploadOptions.github.enabled ? "Yes" : "No")}');
if (config.uploadOptions.github.enabled) {
print(
' Token: ${highlight(config.uploadOptions.github.token ?? "Not set")}');
print(
' Repo: ${highlight(config.uploadOptions.github.repo ?? "Not set")}');
print(' Tag: ${highlight(config.uploadOptions.github.tag)}\n');
}
print(' Google Drive:');
print(
' ${getStatusEmoji(config.uploadOptions.googleDrive.enabled)} Enabled: ${highlight(config.uploadOptions.googleDrive.enabled ? "Yes" : "No")}');
if (config.uploadOptions.googleDrive.enabled) {
print(
' Client ID: ${highlight(config.uploadOptions.googleDrive.clientId ?? "Not set")}');
print(
' Client Secret: ${highlight(config.uploadOptions.googleDrive.clientSecret ?? "Not set")}\n');
}
print('🎨 QR Code Settings:');
print(
' ${getStatusEmoji(config.qrCode.enabled)} QR Code: ${highlight(config.qrCode.enabled ? "Enabled" : "Disabled")}');
print(' Save Path: ${highlight(config.qrCode.savePath)}');
print(
' Save QR Image: ${highlight(config.qrCode.saveFile ? "Yes" : "No")}');
print(' Image Size: ${highlight(config.qrCode.size.toString())}');
print(
' Show in Console: ${highlight(config.qrCode.showInCommand ? "Yes" : "No")}');
print(
' Error Correction Level: ${highlight(config.qrCode.errorCorrectionLevel.toString())}\n');
print(
'✨ Use this information to ensure your configuration is set up correctly.');
}