create_file

Create a file with contents

Arguments

NameTypeDescriptionRequired

path_to_file

string

The path to the file that needs to be created. The path should be relative to the project root.

file_contents

prompt

The file content. If not defined, this simply acts like touch.

Returns

TypeDescription

string

The path to the newly created file.

Example

- name: create_file
  arguments:
    path_to_file: /some/path/to/file.py
    file_contents: |
      some really interesting content
  returns: /some/path/to/file.py

Last updated