Skip to main content

多分支 worktree 管理工具

Project description

yyp

多分支 worktree 管理工具(支持 krepo-nggit)。

安装

pip install yyp

使用

  • 创建 worktree:
yyp add <path> <branch>

这会在 ~/<path>/wpsmain~/<path>/wpsweb 下分别创建或切换到 <branch>

  • 列出 worktree:
yyp list
  • 移除 worktree:
yyp remove <path>

这会移除 ~/<path>/wpsmain~/<path>/wpsweb 的 worktree,并删除整个 <path> 目录。

  • 配置管理:
yyp set work_dir=~/workspace  # 设置工作目录
yyp config                    # 显示当前配置
  • 修改配置和生成构建脚本(仅限 Linux):
yyp modify                    # 修改 wpsweb/server/Makefile 和生成 build_server.sh
yyp modify --force            # 强制在非 Linux 系统上运行(不推荐)

这会自动查找 wpsweb 目录,并执行以下操作:

  1. 修改 server/Makefile
    • 去掉 -Wl,-s 参数
    • -O2 修改为 -g
  2. 生成 build_server.sh
    • 清空文件内容并写入构建脚本
    • 动态替换路径变量(基于当前执行路径)
    • 自动设置执行权限

注意: modify 命令仅在 Linux 系统上支持,因为它需要修改 Makefile 和生成 shell 脚本。

依赖

  • 需要本机已安装并在 PATH 中可用:krepo-nggit
  • 配置文件位置:~/.yyp.json

许可

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yyp-0.1.9.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yyp-0.1.9-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file yyp-0.1.9.tar.gz.

File metadata

  • Download URL: yyp-0.1.9.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for yyp-0.1.9.tar.gz
Algorithm Hash digest
SHA256 05fcae902086e89a6f3e3c4e752e67114683eaa8a3d695d6205a9e9ea423e07a
MD5 0b63ab0c79334372adfe99d9ee6ef3ec
BLAKE2b-256 be4542f029dd4bb9a6cc1a1c72dcbc2aa4320c092ca8a49e55c3db46fd63c4c1

See more details on using hashes here.

File details

Details for the file yyp-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: yyp-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for yyp-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9d33c543930813a9e40544384509a20527d84c73a1046365d4772bc09a37ffb5
MD5 e6d1920b5bce3b067fe9abc3220ef545
BLAKE2b-256 b8d9c1545e9980d66e6531bedafa83f7d6b7685e7126ede34948f5e282cfdf62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page