Expand description
Prompt CLI command.
Provides subcommands for managing user-defined prompt templates.
Structsยง
- Prompt
Command - Prompt command handler.
- Save
Prompt Args - Arguments for the
prompt savecommand.
Enumsยง
- Output
Format - Output format for prompt commands.
Functionsยง
- build_
partial_ ๐metadata - Builds partial metadata from user-provided values.
- build_
share_ ๐content - Builds shareable content with full metadata.
- build_
template_ ๐from_ input - Builds a template from the various input sources.
- cmd_
prompt_ delete - Executes the
prompt deletesubcommand. - cmd_
prompt_ export - Executes the
prompt exportsubcommand. - cmd_
prompt_ get - Executes the
prompt getsubcommand. - cmd_
prompt_ import - Executes the
prompt importsubcommand. - cmd_
prompt_ list - Executes the
prompt listsubcommand. - cmd_
prompt_ run - Executes the
prompt runsubcommand. - cmd_
prompt_ save - Executes the
prompt savesubcommand (legacy interface). - cmd_
prompt_ save_ with_ args - Executes the
prompt savesubcommand. - cmd_
prompt_ share - Executes the
prompt sharesubcommand. - create_
prompt_ ๐service - Creates a
PromptServicewith full config loaded. - determine_
export_ ๐format - Determines export format from explicit format or file extension.
- domain_
scope_ ๐to_ display - Converts domain scope to display string.
- find_
missing_ ๐variables - Finds missing required variables.
- format_
timestamp ๐ - Formats a Unix timestamp as a full datetime string.
- format_
timestamp_ ๐short - Formats a Unix timestamp as a short date string.
- format_
variables_ ๐summary - Formats a summary of variables for display.
- infer_
format_ ๐from_ path - Infers the prompt format from a file path or URL extension.
- load_
template_ ๐from_ source - Loads a template from a file path or URL.
- parse_
domain_ ๐scope - Parses domain scope from string.
- print_
prompts_ ๐table - Prints prompts in table format.
- print_
template_ ๐details - Prints template details in human-readable format.
- prompt_
for_ ๐variables - Prompts interactively for variable values.
- validate_
template ๐ - Validates a template for required fields and variable syntax.