-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add t3 [info|install], t3 install is alias for t3 app install
- Loading branch information
1 parent
46e3746
commit b6749bc
Showing
6 changed files
with
59 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Created on Tue Feb 27 2024 10:38:24 by codeskyblue | ||
""" | ||
|
||
from pymobiledevice3.cli.cli_common import print_json | ||
from pymobiledevice3.lockdown import LockdownClient | ||
|
||
from tidevice3.cli.cli_common import cli, pass_service_provider | ||
|
||
|
||
@cli.command("info") | ||
@pass_service_provider | ||
def info(service_provider: LockdownClient): | ||
""" print device info """ | ||
print_json(service_provider.short_info) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Created on Tue Feb 27 2024 10:05:20 by codeskyblue | ||
""" | ||
|
||
import click | ||
from pymobiledevice3.lockdown import LockdownClient | ||
|
||
from tidevice3.api import app_install | ||
from tidevice3.cli.cli_common import cli, pass_rsd, pass_service_provider | ||
|
||
|
||
@cli.command("install") | ||
@click.argument("path_or_url") | ||
@pass_service_provider | ||
def cli_install(service_provider: LockdownClient, path_or_url: str): | ||
"""install given .ipa or url, alias for app install""" | ||
app_install(service_provider, path_or_url) |