You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
815 B
21 lines
815 B
# -*- coding: utf-8 -*-
|
|
"""票 12 bruno-sync:商机详情全部 Tab 文件夹 + seq;读客户列表.bru 作 GET 列表模板。"""
|
|
import io
|
|
import sys
|
|
import re
|
|
from pathlib import Path
|
|
|
|
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
|
|
|
base = Path('D:/code/crm-api-docs/商机模块/商机详情')
|
|
for sub in sorted(p for p in base.iterdir() if p.is_dir()):
|
|
fb = sub / 'folder.bru'
|
|
seq = ''
|
|
if fb.exists():
|
|
m = re.search(r'seq:\s*(\d+)', fb.read_text(encoding='utf-8'))
|
|
seq = m.group(1) if m else '?'
|
|
brus = sorted(p.name for p in sub.glob('*.bru') if p.name != 'folder.bru')
|
|
print(f'{sub.name}/ seq={seq} {len(brus)} 端点: {brus}')
|
|
|
|
print('=' * 30, '客户/客户列表.bru')
|
|
print((base / '客户' / '客户列表.bru').read_text(encoding='utf-8'))
|
|
|