Show HN: Trylle – 面向现代团队的下一代 Git 平台
Show HN: Trylle – The Next-Gen Git Platform for Modern Teams

原始链接: https://trylle.com/home

此 PR 为 bash 和 zsh shell 的 nimbus 命令添加了补全生成功能,并支持通过 NIMBUS_COMPLETE_HIDDEN=1 环境变量选择性显示隐藏标志。 此次实现引入了一个新的 completion.go 模块,用于在生成补全时控制隐藏标志的可见性。completion_gen.go 中的 GenBash() 函数可输出 bash 补全内容,默认情况下 _nimbus_bash_complete 会屏蔽隐藏标志;导出 NIMBUS_COMPLETE_HIDDEN=1 即可显示这些标志。 此更改为增量式更新且向后兼容,现有的补全行为保持不变。测试覆盖范围已验证 TestHiddenFlagsMaskedByDefault 函数的可调用性。

抱歉。
相关文章

原文

This PR adds completion generation for the nimbus command across bash and zsh shells, with opt-in support for hidden flags via NIMBUS_COMPLETE_HIDDEN=1 environment variable.

The implementation introduces a new completion.go module that gates hidden flag visibility during completion generation. A seed GenBash() function in completion_gen.go provides bash completion output, while _nimbus_bash_complete completion is disabled by default for hidden flags; export NIMBUS_COMPLETE_HIDDEN=1 to reveal them.

The change is additive and backward-compatible — existing completion behavior stays intact. Test coverage validates that the TestHiddenFlagsMaskedByDefault function is callable.

联系我们 contact @ memedata.com