-
Notifications
You must be signed in to change notification settings - Fork 311
Description
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_modulesfolder, it is not just giving us the path but also tries to delete / initialise the folder which causes issues when running in watch mode.