ktx icon indicating copy to clipboard operation
ktx copied to clipboard

[Feature request] Manage/auto-update changes of packages/scripts

Open krzema12 opened this issue 3 years ago • 1 comments

I installed my script with

> ktx install https://raw.githubusercontent.com/krzema12/PersonalConfigs/master/scripts/removeLocalMergedBranches.main.kts --alias=remove-merged-branches

but I guess ktx just fetches it once and doesn't check for changes, right? I thought ktx can be made aware of versions somehow. For Maven packages it will be much easier, and for scripts, I can think of several approaches:

  • inferring actual commit SHA-1 and using it as version
  • simply detecting that the remote file changed

I'd then see a feature of updating all/chosen packages/scripts, perhaps also doing it automatically or perhaps only checking for updates.

krzema12 avatar Jan 19 '23 11:01 krzema12

Great idea, definitely worth the effort. At the moment caching is rudimental and only checks the remote if there's no such file is already downloaded.

mpetuska avatar Jan 19 '23 14:01 mpetuska