Skip to main content

Edit

Edit a file using AI

Synopsis​

OttoDocs Edit allows you to use AI to help edit your code files. Provide a file name and a goal, and OttoDocs will return a generated version of the file. You can even specify the starting and ending lines for the edit, or choose to append the results to the file:

Example: otto edit main.go --start 1 --end 10 --goal "Refactor the function"

otto edit [flags]

Options​

  -a, --append        Append to the end of a file instead of overwriting it
-e, --end int End line
-f, --force Force overwrite of existing files
-g, --goal string Goal of the edit
-h, --help help for edit
-s, --start int Start line (default 1)
-v, --verbose Verbose output

Options inherited from parent commands​

  -V, --version   print version

SEE ALSO​

  • otto - Document your code with ease
Auto generated by spf13/cobra on 30-Apr-2023​