-
Mustaque Ahmed authored
* feat: add `upgrade` command in the cmd directory this is a wrapper around the main implementation and it plugs-in with the cobra command. * feat: add a pkg to support `datree upgrade` command In this pkg we are going to write all types of helper and nested utils methods that can be used to support the upgrade process * feat: add `upgrade` command in the main cobra command file * fix lint error - imports * remove `upgrade` method from cmd file * fix lint errors * revert lint fix - unrelated files * working `upgrade` command * print success message after upgrade * refactor: `CheckIfDatreeInstalledUsingBrew` datree * fix: return if error encountered * add newline and fix lint errors * assign `runtime.GOARCH` directly to arch variable * refactor: remove golang logic and implement fetching shell script and executing it * Use camelCase convention - variable name Co-authored-by:
shalev007 <51760613+shalev007@users.noreply.github.com> * use camelCase `errMsg` * fix spelling mistake Co-authored-by:
Roy Hadad <39004075+royhadad@users.noreply.github.com> * change script URL to `https://get.datree.io` * resolve conflicts * rewrite `upgrade logic` - make it simpler * refactor: remove extra code and write one-liner command * remove duplicate code * add check for windows OS * fix check for windows OS * fix: print out stderr as well Co-authored-by:
shalev007 <51760613+shalev007@users.noreply.github.com> Co-authored-by:
Roy Hadad <39004075+royhadad@users.noreply.github.com> Co-authored-by:
Roy Hadad <roy@datree.io>
6ded477a