Skip to content

Allow command arguments, file paths, and prompt messages to be templated #151

Description

@LucasPickering

More values in chains should be templated, specifically:

  • The items in the command field of a !command
  • The path field of a !file
  • The message field of a !prompt

This will make chains much more composable. The work involved is:

  • Change the model types from strings (or PathBuf) to Template
  • Update render code in render.rs
    • The compiler errors caused by the model changes should point you in the right direction
  • Write tests in template.rs
  • Add documentation, via an example in templates.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew behavior to enable things that were previously not possiblegood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions