Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ Forward device port 22 to local port 2022:
dataplicity devices port-forward <device-hash> --remote-port 22 --local-port 2022
```

Read a remote file:
Read a file relative to the device remote-file root, normally `/home/dataplicity/remote`:

```
dataplicity devices remote-file <device-hash> --path /etc/os-release --output ./os-release.txt
dataplicity devices remote-file <device-hash> --path logs/app.log --output ./app.log
```

Output JSON for scripting:
Expand All @@ -231,7 +231,7 @@ dataplicity user-impact list --unresolved-only
Run a fleet job:

```
dataplicity fleet-jobs run --data '{"name":"restart-edge","device_hashes":["abc123"],"command":"restart"}'
dataplicity fleet-jobs run --data '{"prompt":"System information","device_hashes":["abc123"],"command":"uname -a"}'
```

Query logs:
Expand Down Expand Up @@ -263,7 +263,7 @@ dataplicity whoami
Install shell completion:

```
dataplicity --install-completion zsh
dataplicity --install-completion
```

## Notes
Expand Down
2 changes: 1 addition & 1 deletion dataplicity_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__all__ = ["__version__"]

__version__ = "0.2.0"
__version__ = "0.2.1"
7 changes: 7 additions & 0 deletions dataplicity_cli/_pyinstaller/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""PyInstaller hook discovery for the standalone CLI."""

from pathlib import Path


def get_hook_dirs():
return [str(Path(__file__).resolve().parent)]
10 changes: 10 additions & 0 deletions dataplicity_cli/_pyinstaller/hook-dataplicity_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Include dependencies loaded dynamically by shell detection and the SSL runtime."""

import os
from pathlib import Path
import ssl

hiddenimports = [f"shellingham.{os.name}"]
# Some Python distributions load an adjacent certificate policy file from ssl.py.
policy_file = Path(ssl.__file__).with_name("codex-rejected-cas.pem")
datas = [(str(policy_file), ".")] if policy_file.is_file() else []
Loading
Loading