validateInputs method

bool validateInputs(
  1. String? morphemeYamlPath
)

Validates input parameters and project prerequisites.

Returns true if validation passes, false otherwise. Displays specific error messages with resolution guidance.

Implementation

bool validateInputs(String? morphemeYamlPath) {
  try {
    YamlHelper.validateMorphemeYaml(morphemeYamlPath);
  } catch (e) {
    StatusHelper.failed(
      'Invalid morpheme.yaml configuration: ${e.toString()}',
      suggestion: 'Ensure morpheme.yaml exists and has valid syntax',
      examples: ['morpheme init', 'morpheme config'],
    );
    return false;
  }

  return true;
}