Skip to main content

Module parameterize

Module parameterize 

Source
Expand description

Auto-detection of parameterizable values in workflow exports.

When mur out exports a workflow, this module scans all text content (step descriptions, commands, URLs) for values that should be replaced with {{variable}} templates to make the workflow reusable.

§Detected Patterns

  • URLs (http/https) → {{base_url}}, {{api_url}}, {{site_url}}
  • File paths (absolute) → {{project_dir}}, {{output_path}}
  • API tokens/keys → {{api_key}}, {{auth_token}}
  • Email addresses → {{email}}
  • Port numbers → {{port}}
  • Domain names → {{domain}}
  • Git repos → {{repo_url}}
  • Docker images → {{docker_image}}

Structs§

ParameterSuggestion
A suggestion to replace a detected value with a variable.

Enums§

DetectedCategory
Categories of auto-detected parameterizable values.

Functions§

apply_parameterization
Apply variable substitutions to text — replace literal values with {{var_name}}.
detect_parameterizable_values
Scan text content for parameterizable values and return suggestions.
format_suggestions_display
Format suggestions for display in the terminal.
parameterize_workflow
Apply all accepted suggestions to a workflow, replacing literal values with {{var}}.
scan_workflow
Scan an entire workflow for parameterizable values and return suggestions.
suggestions_to_variables
Convert suggestions into workflow Variable definitions.