plash-cli 0.3.6__tar.gz → 0.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {plash_cli-0.3.6/plash_cli.egg-info → plash_cli-0.3.7}/PKG-INFO +1 -1
- plash_cli-0.3.7/plash_cli/__init__.py +2 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli/cli.py +7 -7
- {plash_cli-0.3.6 → plash_cli-0.3.7/plash_cli.egg-info}/PKG-INFO +1 -1
- {plash_cli-0.3.6 → plash_cli-0.3.7}/settings.ini +1 -1
- plash_cli-0.3.6/plash_cli/__init__.py +0 -2
- {plash_cli-0.3.6 → plash_cli-0.3.7}/LICENSE +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/MANIFEST.in +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/README.md +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli/_bash_magic.py +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli/_modidx.py +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli/assets/es256_public_key.pem +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli/auth.py +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli.egg-info/SOURCES.txt +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli.egg-info/dependency_links.txt +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli.egg-info/entry_points.txt +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli.egg-info/not-zip-safe +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli.egg-info/requires.txt +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/plash_cli.egg-info/top_level.txt +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/pyproject.toml +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/setup.cfg +0 -0
- {plash_cli-0.3.6 → plash_cli-0.3.7}/setup.py +0 -0
|
@@ -99,8 +99,8 @@ def login(
|
|
|
99
99
|
cookies = _poll_cookies(paircode)
|
|
100
100
|
if cookies:
|
|
101
101
|
PLASH_CONFIG_HOME.write_text(json.dumps(cookies))
|
|
102
|
-
|
|
103
|
-
else:
|
|
102
|
+
print(f"Authentication successful! Config saved to {PLASH_CONFIG_HOME}")
|
|
103
|
+
else: print("Authentication timed out.")
|
|
104
104
|
|
|
105
105
|
# %% ../nbs/00_cli.ipynb 17
|
|
106
106
|
pat = r'(?m)^# /// (?P<type>[a-zA-Z0-9-]+)$\s(?P<content>(^#(| .*)$\s)+)^# ///$'
|
|
@@ -170,7 +170,7 @@ def deploy(
|
|
|
170
170
|
r = _mk_auth_req(_endpoint(rt="/upload"), "post", files={'file': tarz},
|
|
171
171
|
data={'name': name, 'force_data': force_data})
|
|
172
172
|
if r:
|
|
173
|
-
|
|
173
|
+
print('✅ Upload complete! Your app is currently being built.\n' +
|
|
174
174
|
f'It will be live at {name if "." in name else _endpoint(sub=name)}')
|
|
175
175
|
else: return 'Unknown failure'
|
|
176
176
|
|
|
@@ -245,7 +245,7 @@ def logs(
|
|
|
245
245
|
@patch
|
|
246
246
|
def _is_dir_empty(self:Path): return next(self.iterdir(), None) is None
|
|
247
247
|
|
|
248
|
-
# %% ../nbs/00_cli.ipynb
|
|
248
|
+
# %% ../nbs/00_cli.ipynb 46
|
|
249
249
|
@call_parse
|
|
250
250
|
def download(
|
|
251
251
|
path:Path=Path('.'), # Path to project
|
|
@@ -259,7 +259,7 @@ def download(
|
|
|
259
259
|
with tarfile.open(fileobj=io.BytesIO(r.content), mode="r:gz") as tar: tar.extractall(path=save_path, filter='data')
|
|
260
260
|
print(f"Downloaded your app to: {save_path}")
|
|
261
261
|
|
|
262
|
-
# %% ../nbs/00_cli.ipynb
|
|
262
|
+
# %% ../nbs/00_cli.ipynb 49
|
|
263
263
|
@call_parse
|
|
264
264
|
def apps(verbose:bool=False):
|
|
265
265
|
"List your deployed apps (verbose shows status table: 1=running, 0=stopped)"
|
|
@@ -267,5 +267,5 @@ def apps(verbose:bool=False):
|
|
|
267
267
|
if r:
|
|
268
268
|
apps = r.json()
|
|
269
269
|
if not apps: return "You don't have any deployed Plash apps."
|
|
270
|
-
if verbose: return [(f"{a['running']} {a['name']}") for a in apps]
|
|
271
|
-
else: return [(a['name']) for a in apps]
|
|
270
|
+
if verbose: return [print(f"{a['running']} {a['name']}") for a in apps]
|
|
271
|
+
else: return [print(a['name']) for a in apps]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|