Skip to content

Rewrite Fable.CLI #3725

@MangelMaxime

Description

@MangelMaxime

Description

Current code of Fable.CLI is difficult to maintain.

We should rewrite Fable.CLI so it is easier to maintain and extends.

  • Rewrite the CLI parser.

    I would like to avoid using Argu as I find that Argu as some limitations in how it allows the CLI to be structured.

    Depending on the time frame, I am interested in exploring using function composition to describe the CLI. It is a similar approach to how Thoth.Json and Fable.Form solve their problem.

    elm-cli-options-parser could be an inspiration for the exposed API.

    This would be released as an independent library.

  • Functions / API should do one thing at the time. For example, currently when we try to retrieve the path of the fable_modules folder, it is not just giving us the path but also tries to delete / initialise the folder which causes issues when running in watch mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions