Skip to main content

多分支 worktree 管理工具

Project description

yyt

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

安装

pip install yyt

使用

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

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

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

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

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

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

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

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

依赖

  • 需要本机已安装并在 PATH 中可用:krepo-nggit
  • 配置文件位置:~/.yyt.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

yyt-0.1.7.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.

yyt-0.1.7-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file yyt-0.1.7.tar.gz.

File metadata

  • Download URL: yyt-0.1.7.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 yyt-0.1.7.tar.gz
Algorithm Hash digest
SHA256 1e4cd9f5e288c9a7f07d09ab27c5ea829274f0f9504eb10be107be513e3d7cac
MD5 2fa9ab8b4708695c1ef6d80d541576af
BLAKE2b-256 ff0dbc9fa277481223c38220da56c69ab923581ef6922b860232f720245519dd

See more details on using hashes here.

File details

Details for the file yyt-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: yyt-0.1.7-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 yyt-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1afa2306f6cf11823429c33e371a5f03132a199a064e0664676ff489d8aa6d83
MD5 e78849c5932e10c3c49c1e8ee7184479
BLAKE2b-256 54f7150230393538aa18c84a2ccdf0991a2feb7350a6e5fd28daa39e1c658824

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