Skip to content

Commit

Permalink
n
Browse files Browse the repository at this point in the history
  • Loading branch information
electrolyteJ committed Jun 12, 2024
1 parent dd0d44c commit 7eb478c
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gen_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: cp readme.md
run: cp README.md docs/index.md ; cp packages/fastp/README.md docs/fastp.md ; cp packages/padb/README.md docs/padb.md
run: cp README.md docs/index.md ; cp packages/fastcli/README.md docs/fastcli.md ; cp packages/padb/README.md docs/padb.md
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ theme:
nav:
- Home: index.md
- Padb: padb.md
- Fastp: fastp.md
- Fastp: fastcli.md

markdown_extensions:
- toc:
Expand Down
4 changes: 2 additions & 2 deletions packages/fastp/README.md → packages/fastcli/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[pip install cmd-fastp](https://pypi.org/project/cmd-fastp/#description)
[pip install fastcli](https://pypi.org/project/fastcli/#description)

## Framework

轻量级终端指令框架,`pip install cmd-fastp`即可在自己的项目接入。只要创建一个存放命令的文件夹cmds即可。
轻量级终端指令框架,`pip install fastcli`即可在自己的项目接入。只要创建一个存放命令的文件夹cmds即可。

初始化框架
```python
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tool.poetry]
name = "fastp"
version = "1.2.0"
description = "padb tools"
name = "fastcli"
version = "1.3.0"
description = "fastcli"
authors = ["electrolyteJ <electrolytej@gmail.com>"]
license = "Apache2"
readme = "README.md"
packages = [{ include = "fastp", from = "src" }]
packages = [{ include = "fast", from = "src" }]

[tool.poetry.dependencies]
python = "^3.9"
Expand All @@ -15,3 +15,5 @@ tqdm = "^4.65.0"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"



Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from importlib import import_module
import sys
from argparse import ArgumentParser
from fastp import device, log
from fast import device, log
from abc import abstractmethod, ABC


Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import subprocess
from subprocess import Popen, PIPE
from fastp import is_macos
from fast import is_macos


# os.system()
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from fastp import device
from fast import device
from subprocess import PIPE, TimeoutExpired
import subprocess
import platform
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/padb/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ packages = [{ include = "padb", from = "src" }]
[tool.poetry.dependencies]
python = "^3.9"
requests = "^2.28.2"
fastp = { path = "../fastp", develop = true }
fastcli = { path = "../fastcli", develop = true }

[tool.poetry.scripts]
padb = 'padb:entry'
4 changes: 2 additions & 2 deletions packages/padb/src/padb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__version__ = '1.0.0'

import fastp
import fast


def entry():
fastp.load_cmds(__file__, 'padb')
fast.load_cmds(__file__, 'padb')
6 changes: 3 additions & 3 deletions packages/padb/src/padb/device_info/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from fastp import DeviceCommand
from fastp.device import (
from fast import DeviceCommand
from fast.device import (
get_model, get_brand, get_name,
get_wm_size, get_wm_density, get_android_version,
get_imeis, get_ip_and_mac, get_board,
get_abilist, get_cpu_core_size, get_heap_size,
)
from fastp.log import print_with_bar
from fast.log import print_with_bar


class DeviceInfo(DeviceCommand):
Expand Down
4 changes: 2 additions & 2 deletions packages/padb/src/padb/log_info/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from fastp import DeviceCommand
from fastp import event, log
from fast import DeviceCommand
from fast import event, log
from argparse import ArgumentParser


Expand Down
2 changes: 1 addition & 1 deletion packages/padb/src/padb/temple_code.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from argparse import ArgumentParser

from fastp import BaseCommand
from fast import BaseCommand
from padb.api import request


Expand Down

0 comments on commit 7eb478c

Please sign in to comment.