Skip to content

Allow for calling inject directly, without Typer #22

@jacobeatsspam

Description

@jacobeatsspam
    inject(Path("models/README.md"))
paracelsus/cli.py", line 181, in inject
    format=format.value,
           ^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'value'

The issue is that the default uses Formats.mermaid.value and then again, .value is attempted to be used below.

If I can propose a fix, set the default to the correct type, Formats.mermaid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions