|
517 | 517 | " name:str=None, # Overrides the .plash file in project root if provided\n", |
518 | 518 | " force:bool=False): # Skip confirmation prompt\n", |
519 | 519 | " 'Delete your deployed app'\n", |
520 | | - " if not name: name = get_app_name(path)\n", |
| 520 | + " if not name: name = _get_app_name(path)\n", |
521 | 521 | " if not force:\n", |
522 | 522 | " confirm = input(f\"Are you sure you want to delete app '{name}'? This action cannot be undone. [y/N]: \")\n", |
523 | 523 | " if confirm.lower() not in ['y', 'yes']:\n", |
|
575 | 575 | "@call_parse\n", |
576 | 576 | "def start(path:Path=Path('.'), name:str=None):\n", |
577 | 577 | " \"Start your deployed app\"\n", |
578 | | - " if not name: name = get_app_name(path)\n", |
| 578 | + " if not name: name = _get_app_name(path)\n", |
579 | 579 | " r = _mk_auth_req(_endpoint(rt=f\"/start?name={name}\"))\n", |
580 | 580 | " return r.text" |
581 | 581 | ] |
|
625 | 625 | "@call_parse \n", |
626 | 626 | "def stop(path:Path=Path('.'), name:str=None):\n", |
627 | 627 | " \"Stop your deployed app\" \n", |
628 | | - " if not name: name = get_app_name(path)\n", |
| 628 | + " if not name: name = _get_app_name(path)\n", |
629 | 629 | " r = _mk_auth_req(_endpoint(rt=f\"/stop?name={name}\"))\n", |
630 | 630 | " return r.text" |
631 | 631 | ] |
|
759 | 759 | " name:str=None, # Overrides the .plash file in project root if provided\n", |
760 | 760 | " save_path:Path=Path(\"./download/\")): # Save path (optional)\n", |
761 | 761 | " 'Download your deployed app'\n", |
762 | | - " if not name: name = get_app_name(path)\n", |
| 762 | + " if not name: name = _get_app_name(path)\n", |
763 | 763 | " try: save_path.mkdir(exist_ok=False)\n", |
764 | 764 | " except: print(f\"ERROR: Save path ({save_path}) already exists. Please rename or delete this folder to avoid accidental overwrites.\")\n", |
765 | 765 | " else:\n", |
|
0 commit comments