refactor_file

Refactor a file based on provided instructions.

Arguments

Name
Type
Description
Required

path_to_file

string

The path to the file that needs refactoring, relative to the project root.

refactor_prompt

prompt

Instructions on how to refactor the file.

Returns

Type
Description

string

The path to the refactored file.

Example

- name: refactor_file
  arguments:
    path_to_file: <relative-path-to-file>
    refactor_prompt: <refactor-instructions>
  returns: <path-to-refactored-file>

Last updated