Class DescribeCLI
java.lang.Object
com.scivicslab.actoriac.cli.DescribeCLI
CLI subcommand for displaying workflow descriptions.
Usage examples:
# Show workflow description only actor-iac describe -d ./workflows -w my-workflow # Show workflow description with step descriptions actor-iac describe -d ./workflows -w my-workflow --steps # With overlay actor-iac describe -d ./workflows -w my-workflow -o ./overlays/env --steps
- Since:
- 2.10.0
- Author:
- devteam@scivics-lab.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()private FilefindWorkflowFile(String name) Finds a workflow file by name.private static StringgetBaseName(String fileName) Gets the base name of a file (without extension).loadYamlFile(File file) Loads a YAML file.loadYamlWithOverlay(File workflowFile) Loads a YAML file with overlay applied.private voidprintWorkflowDescription(File file, Map<String, Object> yaml) Prints workflow description.private voidscanWorkflowDirectory(File directory) Scans the workflow directory recursively for workflow files.
-
Field Details
-
workflowDir
-
workflowName
-
overlayDir
-
showSteps
-
workflowCache
Cache of discovered workflow files: name -> File
-
-
Constructor Details
-
DescribeCLI
public DescribeCLI()
-
-
Method Details
-
call
-
printWorkflowDescription
Prints workflow description. -
scanWorkflowDirectory
Scans the workflow directory recursively for workflow files. -
findWorkflowFile
Finds a workflow file by name. -
loadYamlFile
Loads a YAML file. -
loadYamlWithOverlay
Loads a YAML file with overlay applied. -
getBaseName
Gets the base name of a file (without extension).
-