new implementation

This commit is contained in:
ge
2026-05-05 23:02:06 +03:00
parent 171ec8fe4b
commit 95ceb5aeac
9 changed files with 179 additions and 217 deletions
+10 -8
View File
@@ -1,11 +1,13 @@
mkembedfs - generate V code for embed directories with files into executable.
mkembedfs - generate V code to embed directories into executables.
usage: mkembedfs [flags] [<path>]
flags:
-help print this help message and exit
-chdir <string> change working directory before codegen
-prefix <string> path prefix for file keys, none by default
-help print this help message and exit.
-chdir <string> change working directory before codegen.
-ignore <string> path globs to ignore (allowed multiple times)
-module-name <string> generated module name, 'main' by default
-const-name <string> generated constant name with data, 'embedfs' by default
-no-pub do not make symbols in generated module public
-force-mimetype set 'application/octet-stream' mime type for unknown files
-prefix <string> path prefix for file keys, none by default.
-path-prefix <string> path prefix for files in $embed_file() calls.
-compression apply zlib compression to $embed_file().
-module-name <string> generated module name, 'main' by default.
-const-name <string> generated const name, 'embed_files' by default.
-no-pub do not make symbols in generated module public.
-notice <string> notice comment text, set empty to disable.