show method

  1. @cliCommand
Future<void> show(
  1. String name
)

Show details of a saved profile

Implementation

@cliCommand
Future<void> show(
  /// Profile name
  String name,
) async {
  final manager = ProfileManager.withDefaults();

  try {
    final config = await manager.loadProfile(name);
    print('\nProfile: $name');
    UserPrompt.printConfigPreview(config);
    print('');
    info('Use with: claudio gen run --profile $name');
  } on FileSystemException {
    error('Profile not found: $name');
    info('List available profiles with: claudio gen profile list');
  }
}