为自定义构建应用程序指定构建命令列表的好方法
你好, 我有一个自定义构建应用程序,我用它来使用命令行的控制台应用程序构建解决方案,这将运行一组命令,例如编译、下载源文件、部署等。但是我还想提供调试功能来运行特定的仅是命令集而不是完整的构建。 有什么好的方法建议吗?
HI,
I have a custom build application which I use to build solutions using a console application using command line and this will run a set of commands such as compile, download source files, deploy etc. However I also want to provide debug functionality for running a specific set of commands only rather than a full build.
Any suggestions for good approaches?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
保持简单。我会使用纯文本文件。每一行都是一个命令,后跟可选参数。如果需要,添加条件和流程控制语法。但是在开始编码之前要考虑清楚。决定您希望它变得多么复杂(或希望它变得多么复杂),并进行相应的设计。尽量不要让它不断发展,否则您可能会陷入混乱,使用起来不直观。
Keep it simple. I'd use a plain text file. Each line is a command followed by optional parameters. Add conditional and flow-control syntax if required. But think it all out before you start coding. Decide how sophisticated you want it to be (or want it to become), and design it accordingly. Try not to let it just evolve or you'll probably end up with a mess that's not intuitive to use.