hayd / deno-udd

Update Deno Dependencies - update dependency urls to their latest published versions
MIT License
329 stars 18 forks source link

self-upgrade command like Velociraptor #44

Closed mikanIchinose closed 2 years ago

mikanIchinose commented 2 years ago

Velociraptor has self-upgrade command like this.

vr upgrade

So I'd like to have udd-upgrade command.

udd upgrade
hayd commented 2 years ago

See:

https://github.com/jurassiscripts/velociraptor/blob/971b7db71cf635b0c8f2de822aa4270e52cce498/src/cli/commands/upgrade.ts#L28-L35

Shelling out seems pretty reasonable strategy, though IMO execPath is preferable (and using deno.land only i.e. latest tag is fine).

However I suspect for udd this option makes more sense as udd --upgrade (like --help ).

hayd commented 2 years ago

Thanks for the idea/feedback @mikanIchinose . This is released in 0.6.0 !

mikanIchinose commented 2 years ago

it sounds good!! 👍🏻