Planning CLI #4
Shinigami92
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There needs to be multiple CLI subcommands
hsml compile
compile will take a .hsml file and write a .html file
it should be optionally possible to define the output file
if no output file was given, it will be inferred
it should also be possible to give a folder and all .hsml files will processed recursively
if a folder was given, it is not possible to define an output
if no folder or file was given, the current cwd folder will be used
the will be options like
--pretty
to compile into pretty printed html files with newlines and indentationshsml parse
parse will take a .hsml file and generate a json AST
this json AST will just written to std::out for now
hsml fmt
fmt will format a given .hsml file and write it back to the same file
it can also take a folder and will do the check for all .hsml file recursively in that given folder
if no folder or file was passed, the current cwd folder will be taken
fmt will take options like indent-string, but will use 2-space indentation by default
hsml check
check will read the given file, folder or cwd and print out errors if there are some
Beta Was this translation helpful? Give feedback.
All reactions