Skip to main content

Crate cliclack_yaml

Crate cliclack_yaml 

Source

Modules§

test_utils

Structs§

Condition
MultiSelectItem
OutputValue
PromptStep
SelectItem
TextStyle

Enums§

MultiSelectItems
PromptStepType
SelectItems
Validation

Constants§

PROMPT_FOLDER

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 “:”