7373 declaration::String = "platform",
7474 units_check::Bool = false,
7575 log_mode::String = "error",
76- debug::Bool = false
76+ log_path::String = "build.log",
77+ log_level::String = "info",
78+ debug::Bool = false,
7779 dist_dir::String = "dist",
7880 meta_dir::String = "meta",
7981 source::String = "index.heta",
80- type::String = "heta"
81- export_::String = nothing
82+ type::String = "heta",
83+ export_::Union{ String, Nothing} = nothing,
8284 )
8385
8486Builds the models from Heta-based platform
@@ -92,6 +94,8 @@ Arguments:
9294- `declaration` : path to declaration file. Default is `"platform"`
9395- `units_check` : if set to `true` units will be checked for the consistancy
9496- `log_mode` : log mode. Default is `"error"`
97+ - `log_path` : path to the log file. Default is `"build.log"`
98+ - `log_level` : log level to display. Default is `"info"`
9599- `debug` : turn on debug mode. Default is `false`
96100- `dist_dir` : directory path, where to write distributives to. Default is `"dist"`
97101- `meta_dir` : meta directory path. Default is `"meta"`
@@ -104,6 +108,8 @@ function heta_build(
104108 declaration:: String = " platform" ,
105109 units_check:: Bool = false ,
106110 log_mode:: String = " error" ,
111+ log_path:: String = " build.log" ,
112+ log_level:: String = " info" ,
107113 debug:: Bool = false ,
108114 dist_dir:: String = " dist" ,
109115 meta_dir:: String = " meta" ,
@@ -121,6 +127,8 @@ function heta_build(
121127 declaration != " platform" && push!(options_array, " --declaration" , declaration)
122128 units_check && push!(options_array, " --units-check" )
123129 log_mode != " error" && push!(options_array, " --log-mode" , log_mode)
130+ log_path != " build.log" && push!(options_array, " --log-path" , log_path)
131+ log_level != " info" && push!(options_array, " --log-level" , log_level)
124132 debug && push!(options_array, " --debug" )
125133 dist_dir != " dist" && push!(options_array, " --dist-dir" , dist_dir)
126134 meta_dir != " meta" && push!(options_array, " --meta-dir" , meta_dir)
0 commit comments