-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a CLI frontend to the backend #79
Comments
This reverts commit f9af603. Signed-off-by: Remy Suen <[email protected]>
I've reverted this fix and reopend this because I feel it doesn't make sense for this feature to be available in the language server. What should be done instead is for all of the heavy lifting to be moved to a new and separate project in its own npm module. That npm module would have its own separate CLI for formatting and validating Dockerfiles. The language server would then depend on that module and use that module to process and parse the Dockerfile. Whatever results the module returns would be massaged by the language server and then sent back to the client. |
The first phase of this refactoring has started with the parser being extracted out into its own Git repository at rcjsuen/dockerfile-ast. |
The second phase of this refactoring has completed with the formatter and linter being moved off to a new Git repository at rcjsuen/dockerfile-utils. Feel free to install it with |
I've removed the validator and replaced it with a dependency on As the language server's validator and full document formatter has been modified to use |
While many of the features of the language server protocol doesn't make sense outside of the context of the editor, formatting and validation is something that can performed on a file. We should create a CLI to format and validate Dockerfiles.
The text was updated successfully, but these errors were encountered: