nuke icon indicating copy to clipboard operation
nuke copied to clipboard

Global Tool add update script command

Open ron-myers opened this issue 6 years ago • 1 comments

Description

The goal of this feature would be to have a command to update the build scripts (build.ps1, build.sh and build.cmd) within a nuke project.

I just solved an issue in one of my builds

Running "build_script" scripts
.\build.ps1 Pack
Windows PowerShell 7.0.1
/bin/mkdir: invalid option -- 'f'
Try '/bin/mkdir --help' for more information.
Command exited with code 1
Build failed

by updating my build.sh which made me think, we can do better by including a command in Nuke.GlobalTool to update commands.

  • we could discuss adding a version comment to the scripts and have nuke check these versions when booting with a warning that the versions are out of date.

Happy to push a PR for this feature.

Alternatives

  • we could just document that users need to update these scripts manually after every upgrade of nuke.common but it doesn't seem as nice as adding a command for something we have most of the code for.

ron-myers avatar Aug 23 '20 12:08 ron-myers

❤️ - this is excellent. Thank you @matkoch !

ron-myers avatar Mar 02 '21 17:03 ron-myers