16
16
import zipfile
17
17
import getpass
18
18
19
+ import jsn .jsn as jsn
20
+
19
21
import util
20
22
import dependencies
21
- import jsn .jsn as jsn
22
23
import cgu .cgu as cgu
23
24
25
+
24
26
from http .server import HTTPServer , CGIHTTPRequestHandler , executable
25
27
26
28
@@ -1286,6 +1288,19 @@ def pmbuild_profile_help(config, build_order):
1286
1288
print ("\n available tasks for profile " + config ["user_vars" ]["profile" ] + ":" )
1287
1289
print (" config.jsn (edit task settings or add new ones in here)" )
1288
1290
print (" build order:" )
1291
+
1292
+ non_profiles = [
1293
+ "tools" ,
1294
+ "tools_help" ,
1295
+ "extensions" ,
1296
+ "user_vars" ,
1297
+ "special_args" ,
1298
+ "post_build_order" ,
1299
+ "pre_build_order" ,
1300
+ "build_order" ,
1301
+ "user_args"
1302
+ ]
1303
+
1289
1304
for task_name in build_order :
1290
1305
task = config [task_name ]
1291
1306
@@ -1298,9 +1313,15 @@ def pmbuild_profile_help(config, build_order):
1298
1313
msg = " " * 8 + task_name + " (disabled)"
1299
1314
util .log_lvl (msg , config , "-verbose" )
1300
1315
continue
1301
-
1316
+
1302
1317
print (" " * 8 + task_name )
1303
1318
1319
+ print ("" )
1320
+ print (" explicit tasks:" )
1321
+ for key in config :
1322
+ if key not in build_order and key not in non_profiles :
1323
+ print (" " * 8 + key )
1324
+
1304
1325
1305
1326
# build help for core tasks
1306
1327
def core_help (config , taskname , task_type ):
@@ -1598,7 +1619,7 @@ def main():
1598
1619
files = jsn .loads ("{files:" + user_files + "}" )
1599
1620
config ["tool" ]["files" ] = files ["files" ]
1600
1621
1601
- # verbosity indicator
1622
+ # display user vars
1602
1623
util .log_lvl ("user_vars:" , config , "-verbose" )
1603
1624
util .log_lvl (json .dumps (config ["user_vars" ], indent = 4 ), config , "-verbose" )
1604
1625
@@ -1614,6 +1635,10 @@ def main():
1614
1635
print (special_args , flush = True )
1615
1636
print (json .dumps (config , indent = 4 ), flush = True )
1616
1637
1638
+ # display tools
1639
+ util .log_lvl ("tools:" , config , "-verbose" )
1640
+ util .log_lvl (json .dumps (config ["tools" ], indent = 4 ), config , "-verbose" )
1641
+
1617
1642
# core scripts
1618
1643
scripts = {
1619
1644
"copy" : copy ,
0 commit comments