showConfig static method

Future<void> showConfig()

Show current configuration (without sensitive data)

Implementation

static Future<void> showConfig() async {
  final slackEnabled = await ConfigService.isSlackConfigured();

  Logger.phase('📋 Current CLI Configuration');
  Logger.info(
      'Slack Notifications: ${slackEnabled ? '✅ Enabled' : '❌ Disabled'}');

  if (slackEnabled) {
    final token = await getSlackBotToken();
    final maskedToken = (token != null && token.length > 12)
        ? '${token.substring(0, 12)}...'
        : '***';
    Logger.info('Slack Bot Token: $maskedToken');
  }

  Logger.info('Config File Location: $_configFilePath');
}