8000 Fix build path and add shell completion by TNTinMinecraft · Pull Request #148 · tuya/TuyaOpen · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix build path and add shell completion #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025

Conversation

TNTinMinecraft
Copy link
Contributor

修复了通过tos set_example创建的/example目录下无法tos build的问题(使用pwd -P)
添加了bash和zsh自动补全的脚本

@adwuard
Copy link
Contributor
adwuard commented May 26, 2025

@TNTinMinecraft 昨天和你交流的很开心啊。太厉害了昨天拿到板子今天就贡献了。也谢谢你对开源社区的贡献。我们编译工具链同事 @huatuotuya 会协助你帮忙review PR。对于工具链有问题或是建议可以多和他交流。👍

@adwuard adwuard requested review from KyleDeng and Copilot May 27, 2025 05:21
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the build path issue by using the physical working directory for PROJECT_ROOT and adds auto-completion support for Bash and Zsh.

  • Fixes build path resolution in the main script
  • Introduces auto-completion scripts for Bash and Zsh
  • Updates documentation references to the new auto-completion usage and guide paths

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tos Changes PROJECT_ROOT to use 'pwd -P' for physical path resolution
tools/completion/tos.sh Adds new auto-completion code for both Bash and Zsh
README_zh.md Updates documentation paths and includes instructions for auto-completion
README.md Updates documentation paths and includes instructions for auto-completion
Comments suppressed due to low confidence (1)

tools/completion/tos.sh:8

  • The template name 'auduino' appears to be a spelling error. If it is intended to refer to 'arduino', please correct it.
echo "base auduino"

@shiliu-yang shiliu-yang merged commit ba72511 into tuya:master May 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0