Skip to content

Commit 798f1d7

Browse files
committed
Merge branch 'main' of github.com:AnswerDotAI/plash_cli
2 parents 567e007 + 6b3e0e5 commit 798f1d7

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

nbs/00_cli.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@
517517
" name:str=None, # Overrides the .plash file in project root if provided\n",
518518
" force:bool=False): # Skip confirmation prompt\n",
519519
" '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",
521521
" if not force:\n",
522522
" confirm = input(f\"Are you sure you want to delete app '{name}'? This action cannot be undone. [y/N]: \")\n",
523523
" if confirm.lower() not in ['y', 'yes']:\n",
@@ -575,7 +575,7 @@
575575
"@call_parse\n",
576576
"def start(path:Path=Path('.'), name:str=None):\n",
577577
" \"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",
579579
" r = _mk_auth_req(_endpoint(rt=f\"/start?name={name}\"))\n",
580580
" return r.text"
581581
]
@@ -625,7 +625,7 @@
625625
"@call_parse \n",
626626
"def stop(path:Path=Path('.'), name:str=None):\n",
627627
" \"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",
629629
" r = _mk_auth_req(_endpoint(rt=f\"/stop?name={name}\"))\n",
630630
" return r.text"
631631
]
@@ -759,7 +759,7 @@
759759
" name:str=None, # Overrides the .plash file in project root if provided\n",
760760
" save_path:Path=Path(\"./download/\")): # Save path (optional)\n",
761761
" '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",
763763
" try: save_path.mkdir(exist_ok=False)\n",
764764
" except: print(f\"ERROR: Save path ({save_path}) already exists. Please rename or delete this folder to avoid accidental overwrites.\")\n",
765765
" else:\n",

plash_cli/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def delete(
190190
name:str=None, # Overrides the .plash file in project root if provided
191191
force:bool=False): # Skip confirmation prompt
192192
'Delete your deployed app'
193-
if not name: name = get_app_name(path)
193+
if not name: name = _get_app_name(path)
194194
if not force:
195195
confirm = input(f"Are you sure you want to delete app '{name}'? This action cannot be undone. [y/N]: ")
196196
if confirm.lower() not in ['y', 'yes']:
@@ -205,15 +205,15 @@ def delete(
205205
@call_parse
206206
def start(path:Path=Path('.'), name:str=None):
207207
"Start your deployed app"
208-
if not name: name = get_app_name(path)
208+
if not name: name = _get_app_name(path)
209209
r = _mk_auth_req(_endpoint(rt=f"/start?name={name}"))
210210
return r.text
211211

212212
# %% ../nbs/00_cli.ipynb 36
213213
@call_parse
214214
def stop(path:Path=Path('.'), name:str=None):
215215
"Stop your deployed app"
216-
if not name: name = get_app_name(path)
216+
if not name: name = _get_app_name(path)
217217
r = _mk_auth_req(_endpoint(rt=f"/stop?name={name}"))
218218
return r.text
219219

@@ -253,7 +253,7 @@ def download(
253253
name:str=None, # Overrides the .plash file in project root if provided
254254
save_path:Path=Path("./download/")): # Save path (optional)
255255
'Download your deployed app'
256-
if not name: name = get_app_name(path)
256+
if not name: name = _get_app_name(path)
257257
try: save_path.mkdir(exist_ok=False)
258258
except: print(f"ERROR: Save path ({save_path}) already exists. Please rename or delete this folder to avoid accidental overwrites.")
259259
else:

0 commit comments

Comments
 (0)