@@ -178,6 +178,8 @@ def _init_jinja_env(self):
178
178
types .MappingProxyType ({}))
179
179
templates .globals ['passthrough_env' ] = list (
180
180
self .config ['gramine' ].get ('passthrough_env' , []))
181
+ templates .globals ['gramine_unstable' ] = self .config ['gramine' ].get (
182
+ 'gramine_unstable' , False )
181
183
182
184
return templates
183
185
@@ -385,7 +387,7 @@ def get_docker_run_cmd(self, docker_id):
385
387
386
388
387
389
@classmethod
388
- def cmdline_setup_parser (cls , project_dir , passthrough_env ):
390
+ def cmdline_setup_parser (cls , project_dir , gramine_unstable , passthrough_env ):
389
391
@click .command ()
390
392
def click_parser ():
391
393
return cls (project_dir , {
@@ -394,6 +396,7 @@ def click_parser():
394
396
},
395
397
'gramine' : {
396
398
'passthrough_env' : passthrough_env ,
399
+ 'gramine_unstable' : gramine_unstable ,
397
400
},
398
401
})
399
402
return click_parser
@@ -406,7 +409,7 @@ class PythonBuilder(Builder):
406
409
)
407
410
408
411
@classmethod
409
- def cmdline_setup_parser (cls , project_dir , passthrough_env ):
412
+ def cmdline_setup_parser (cls , project_dir , gramine_unstable , passthrough_env ):
410
413
@click .command ()
411
414
@utils .gramine_option_prompt ('--application' , type = str ,
412
415
required = True ,
@@ -419,6 +422,7 @@ def click_parser(application):
419
422
},
420
423
'gramine' : {
421
424
'passthrough_env' : passthrough_env ,
425
+ 'gramine_unstable' : gramine_unstable ,
422
426
},
423
427
cls .framework : {
424
428
'application' : application ,
@@ -449,7 +453,7 @@ class NodejsBuilder(Builder):
449
453
)
450
454
451
455
@classmethod
452
- def cmdline_setup_parser (cls , project_dir , passthrough_env ):
456
+ def cmdline_setup_parser (cls , project_dir , gramine_unstable , passthrough_env ):
453
457
@click .command ()
454
458
@utils .gramine_option_prompt ('--application' , required = True , type = str ,
455
459
prompt = "Which script is the main one" )
@@ -460,6 +464,7 @@ def click_parser(application):
460
464
},
461
465
'gramine' : {
462
466
'passthrough_env' : passthrough_env ,
467
+ 'gramine_unstable' : gramine_unstable ,
463
468
},
464
469
cls .framework : {
465
470
'application' : application ,
@@ -483,7 +488,7 @@ class ExpressjsBuilder(Builder):
483
488
)
484
489
485
490
@classmethod
486
- def cmdline_setup_parser (cls , project_dir , passthrough_env ):
491
+ def cmdline_setup_parser (cls , project_dir , gramine_unstable , passthrough_env ):
487
492
@click .command ()
488
493
@utils .gramine_option_prompt ('--application' , required = True , type = str ,
489
494
prompt = "Which script is the main one" )
@@ -494,6 +499,7 @@ def click_parser(application):
494
499
},
495
500
'gramine' : {
496
501
'passthrough_env' : passthrough_env ,
502
+ 'gramine_unstable' : gramine_unstable ,
497
503
},
498
504
cls .framework : {
499
505
'application' : application ,
@@ -517,7 +523,7 @@ class KoajsBuilder(Builder):
517
523
)
518
524
519
525
@classmethod
520
- def cmdline_setup_parser (cls , project_dir , passthrough_env ):
526
+ def cmdline_setup_parser (cls , project_dir , gramine_unstable , passthrough_env ):
521
527
@click .command ()
522
528
@utils .gramine_option_prompt ('--application' , required = True , type = str ,
523
529
prompt = "Which script is the main one" )
@@ -528,6 +534,7 @@ def click_parser(application):
528
534
},
529
535
'gramine' : {
530
536
'passthrough_env' : passthrough_env ,
537
+ 'gramine_unstable' : gramine_unstable ,
531
538
},
532
539
cls .framework : {
533
540
'application' : application ,
@@ -546,7 +553,7 @@ class JavaJARBuilder(Builder):
546
553
)
547
554
548
555
@classmethod
549
- def cmdline_setup_parser (cls , project_dir , passthrough_env ):
556
+ def cmdline_setup_parser (cls , project_dir , gramine_unstable , passthrough_env ):
550
557
@click .command ()
551
558
@utils .gramine_option_prompt ('--application' , required = True , type = str ,
552
559
prompt = "Which JAR is the main one" )
@@ -557,6 +564,7 @@ def click_parser(application):
557
564
},
558
565
'gramine' : {
559
566
'passthrough_env' : passthrough_env ,
567
+ 'gramine_unstable' : gramine_unstable ,
560
568
},
561
569
cls .framework : {
562
570
'application' : application ,
@@ -572,7 +580,7 @@ class JavaGradleBuilder(Builder):
572
580
)
573
581
574
582
@classmethod
575
- def cmdline_setup_parser (cls , project_dir , passthrough_env ):
583
+ def cmdline_setup_parser (cls , project_dir , gramine_unstable , passthrough_env ):
576
584
@click .command ()
577
585
@utils .gramine_option_prompt ('--application' , required = True , type = str ,
578
586
prompt = "Which JAR is the main one" )
@@ -583,6 +591,7 @@ def click_parser(application):
583
591
},
584
592
'gramine' : {
585
593
'passthrough_env' : passthrough_env ,
594
+ 'gramine_unstable' : gramine_unstable ,
586
595
},
587
596
cls .framework : {
588
597
'application' : application ,
@@ -603,7 +612,7 @@ class DotnetBuilder(Builder):
603
612
)
604
613
605
614
@classmethod
606
- def cmdline_setup_parser (cls , project_dir , passthrough_env ):
615
+ def cmdline_setup_parser (cls , project_dir , gramine_unstable , passthrough_env ):
607
616
@click .command ()
608
617
@utils .gramine_option_prompt ('--build_config' , required = True ,
609
618
type = click .Choice (['Debug' , 'Release' ]),
@@ -621,6 +630,7 @@ def click_parser(build_config, project_file, target):
621
630
},
622
631
'gramine' : {
623
632
'passthrough_env' : passthrough_env ,
633
+ 'gramine_unstable' : gramine_unstable ,
624
634
},
625
635
cls .framework : {
626
636
'build_config' : build_config ,
0 commit comments