chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

sync command - Feature Toggle to have 'choco sync' run at the beginning of any choco command #110

Open AmarettoSlim opened 5 years ago

AmarettoSlim commented 5 years ago

This is a request to have a feature that runs ‘choco sync’ at the beginning of any choco command when enabled.

This feature would ensure legacy workflows where software may have been installed manually to be seamlessly detected by the package manager (PM). This is helpful when businesses are adopting Chocolatey as a package manager as it's unrealistic that every legacy workflow is re-written to leverage the manager at the same time Chocolatey is rolled out.

I would love to get people's opinion of this request.

Thanks!

References

┆Issue is synchronized with this GitLab issue by Unito

ferventcoder commented 5 years ago

@AmarettoSlim this looks great - I'm going to move this over to chocolatey-licensed-issues.

ferventcoder commented 5 years ago

Okay, this has been moved. Going to link up the other similar issue #109

AmarettoSlim commented 5 years ago

Great, happy to provide insight as to how I'm solving this problem for now and answer any Q's that might come up

AdmiringWorm commented 5 years ago

@AmarettoSlim the only workaround that I can think of would be to have a small wrapper script (either powershell, or cmd) that will call choco sync manually before any other call to choco.

Basically user calls the wrapper, which then calls choco sync and then call choco with any parameters passed to the wrapper.