Modules§
Structs§
Enums§
Constants§
Functions§
- apply_
text_ style - Apply text styling based on the provided style configuration
- create_
prompt_ with_ vars - Creates and handles the interactive CLI prompts with external variables.
- create_
prompt_ with_ vars_ custom - Creates and handles the interactive CLI prompts with external variables using provided steps.
- get_
app_ root - Get the currently set app root path
- get_
prompt_ folder - Get the currently set prompt folder path
- get_
yaml_ content - Get YAML content from the prompt file
- handle_
output - Handle Output values
- inject_
external_ variables - Prepare external variables for use with prompts. Returns the variables as a HashMap that can be passed to create_prompt_interaction_with_vars.
- render_
prompt_ interaction - Creates and handles the interactive CLI prompts using the cliclack library.
- render_
prompt_ interaction_ with_ vars - Simplified version that accepts a vector of key-value pairs to make it easier to use
- replace_
variables - Replace variables in text with values from context
- set_
app_ root - Set the folder of the app root
- set_
prompt_ folder - Set the folder path where YAML prompt files are located This path is relative to the app root if it doesn’t start with “/” or contain “:”