obsideo-cli 0.2.2__tar.gz → 0.2.4__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.
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/PKG-INFO +1 -1
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo/cli.py +9 -4
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_cli.egg-info/PKG-INFO +1 -1
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/pyproject.toml +1 -1
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/tests/test_cli.py +1 -1
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/README.md +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo/__init__.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo/__main__.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo/manifest.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo/sync.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_cli.egg-info/SOURCES.txt +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_cli.egg-info/dependency_links.txt +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_cli.egg-info/entry_points.txt +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_cli.egg-info/requires.txt +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_cli.egg-info/top_level.txt +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_core/__init__.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_core/config.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_core/crypto.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_core/identity.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_core/login.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_core/names.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/obsideo_core/storage.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/setup.cfg +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.4}/tests/test_core.py +0 -0
|
@@ -178,7 +178,7 @@ def _latest_pypi_version() -> str | None:
|
|
|
178
178
|
f"https://pypi.org/pypi/{config.PACKAGE}/json",
|
|
179
179
|
headers={"User-Agent": config.USER_AGENT},
|
|
180
180
|
)
|
|
181
|
-
with urllib.request.urlopen(req, timeout=
|
|
181
|
+
with urllib.request.urlopen(req, timeout=15, context=config.ssl_context()) as resp:
|
|
182
182
|
return json.loads(resp.read().decode())["info"]["version"]
|
|
183
183
|
except Exception:
|
|
184
184
|
return None
|
|
@@ -206,7 +206,7 @@ def check_for_update() -> None:
|
|
|
206
206
|
print(f"Updating to {latest}...", file=sys.stderr)
|
|
207
207
|
try:
|
|
208
208
|
rc = subprocess.run(
|
|
209
|
-
[sys.executable, "-m", "pip", "install", "-U", config.PACKAGE]
|
|
209
|
+
[sys.executable, "-m", "pip", "install", "-U", "--no-cache-dir", config.PACKAGE]
|
|
210
210
|
).returncode
|
|
211
211
|
except Exception as e:
|
|
212
212
|
print(f"Update failed: {e}\nTry manually: pip install -U {config.PACKAGE}", file=sys.stderr)
|
|
@@ -604,7 +604,7 @@ class ObsideoShell(cmd.Cmd):
|
|
|
604
604
|
# ── exit ──────────────────────────────────────────────────────────────────
|
|
605
605
|
def do_exit(self, arg):
|
|
606
606
|
"""Exit."""
|
|
607
|
-
print("
|
|
607
|
+
print("adios amigo")
|
|
608
608
|
return True
|
|
609
609
|
|
|
610
610
|
do_quit = do_exit
|
|
@@ -635,6 +635,11 @@ def _fetch_usage() -> dict | None:
|
|
|
635
635
|
def main():
|
|
636
636
|
argv = sys.argv[1:]
|
|
637
637
|
|
|
638
|
+
# Version (stdout, clean + parseable — handled before any chrome).
|
|
639
|
+
if argv and argv[0] in ("--version", "-V", "version"):
|
|
640
|
+
print(f"obsideo-cli {config.VERSION}")
|
|
641
|
+
return
|
|
642
|
+
|
|
638
643
|
# Branded banner on every init (stderr, TTY-gated). Skip for `admin` so
|
|
639
644
|
# operator tooling output stays clean.
|
|
640
645
|
if not (argv and argv[0] == "admin"):
|
|
@@ -684,7 +689,7 @@ def main():
|
|
|
684
689
|
try:
|
|
685
690
|
shell.cmdloop()
|
|
686
691
|
except KeyboardInterrupt:
|
|
687
|
-
print("\
|
|
692
|
+
print("\nadios amigo")
|
|
688
693
|
|
|
689
694
|
|
|
690
695
|
if __name__ == "__main__":
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "obsideo-cli"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.4"
|
|
8
8
|
description = "Obsideo Cloud - encrypted storage we can't read. Save, browse, and sync whatever you want, from your terminal."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -227,4 +227,4 @@ def test_update_check_runs_pip_on_yes(monkeypatch, capsys):
|
|
|
227
227
|
with pytest.raises(SystemExit) as e:
|
|
228
228
|
cli.check_for_update()
|
|
229
229
|
assert e.value.code == 0
|
|
230
|
-
assert calls and calls[0][1:] == ["-m", "pip", "install", "-U", "obsideo-cli"]
|
|
230
|
+
assert calls and calls[0][1:] == ["-m", "pip", "install", "-U", "--no-cache-dir", "obsideo-cli"]
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|