Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Apr 18, 2021
1 parent 3dc944e commit 9ea36d2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ python3 -m pip install --user -U -e .

# Usage

You can either use the CLI:

```
Usage: pymobiledevice3 [OPTIONS] COMMAND [ARGS]...
Expand All @@ -78,6 +80,18 @@ Commands:
syslog syslog options
```

Or import and use the API yourself:

```python
from pymobiledevice3.lockdown import LockdownClient
from pymobiledevice3.services.syslog import SyslogService

lockdown = LockdownClient()
for line in SyslogService(lockdown=lockdown).watch():
# just print all syslog lines as is
print(line)
```

## Sending your own messages

### Lockdown messages
Expand Down

0 comments on commit 9ea36d2

Please sign in to comment.