@@ -388,7 +388,6 @@ def create_warnet_project(directory: Path, check_empty: bool = False):
388388 copy_network_defaults (directory )
389389 copy_scenario_defaults (directory )
390390 copy_plugins_defaults (directory )
391- click .echo (f"Copied network example files to { directory } /networks" )
392391 click .echo (f"Created warnet project structure in { directory } " )
393392 except Exception as e :
394393 click .secho (f"Error creating project: { e } " , fg = "red" )
@@ -413,30 +412,9 @@ def new_internal(directory: Path, from_init=False):
413412 project_path = Path (os .path .expanduser (directory ))
414413 create_warnet_project (project_path )
415414
416- proj_answers = inquirer .prompt (
417- [
418- inquirer .Confirm (
419- "custom_network" ,
420- message = click .style (
421- "Do you want to create a custom network?" , fg = "blue" , bold = True
422- ),
423- default = True ,
424- ),
425- ]
426- )
427415 custom_network_path = ""
428- if proj_answers is None :
429- click .secho ("Setup cancelled by user." , fg = "yellow" )
430- return False
431- if proj_answers ["custom_network" ]:
432- click .secho ("\n Generating custom network..." , fg = "yellow" , bold = True )
433- custom_network_path = inquirer_create_network (directory )
434- else :
435- click .echo (
436- f"No custom network specified, see example network files in { project_path } /networks/"
437- )
438- click .echo ("Deploy any of these networks by running:" )
439- click .echo (f" warnet deploy { project_path } /networks/<example-network-name>" )
416+ click .secho ("\n Generating custom network..." , fg = "yellow" , bold = True )
417+ custom_network_path = inquirer_create_network (directory )
440418
441419 if custom_network_path :
442420 click .echo (
0 commit comments