Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以为给定的项目/文件夹调用播放命令?我的意思是不在项目文件夹中?例如 :
play dist /path/to/a/given/folder play dist /path/to/another/folder
在 CI 中特别有用。
我能想象的最快的方法就是依赖 bash 功能:
cd /path/to/a/given/folder; pwd; play dist; cd - cd /path/to/another/folder; pwd; play dist; cd -
当然你不需要一次又一次地写它。您可以为该工作编写小型 bash 脚本。然后就会被one-line调用。
one-line