Skip to content

overwrite = false should return contents of file #167

Description

@kdheepak

Currently overwrite = false creates a new file instead.

https://github.com/domluna/JuliaFormatter.jl/blob/9c2f82fb5a5a4699390b3c4dd42d35de3d325483/src/JuliaFormatter.jl#L344

It is possible that the user has a file in by that name in that location. I think overwrite = false should instead return the contents of the file.

This will make it easier to interface with vim plugins too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions