juju / charm-tools

Tools for charm authors and maintainers
Other
42 stars 64 forks source link

charm command to check for updated revisions #216

Open adam-stokes opened 8 years ago

adam-stokes commented 8 years ago

Checklist

I ran the following command: charm version and got the following ouput:

charm 2.1.1-0ubuntu1
charm-tools 2.1.2

I am using: Ubuntu

Feature

A charm command to check latest revisions against your current bundle.

Something like

~/bundle-observable-kubernetes> charm cu (or check-update)
Querying charmstore...
cs:trusty/etcd - Latest: 4 Yours: 2
cs:trusty/kubernetes - Latest: 4 Yours: 4 (Already using latest)

Even go as far as updating the bundle

~/bundle-observable-kubernetes> charm cu (or check-update) --edit
Querying charmstore...
cs:trusty/etcd - Latest: 4 Yours: 2
cs:trusty/kubernetes - Latest: 4 Yours: 4 (Already using latest)

--edit flag passed, updating bundle.yaml, .... saved.
mbruzek commented 8 years ago

@battlemidget I saw the need for this when dealing with the bundles I have to maintain. I created a small python project called "bundler" that does exactly what you are asking: https://github.com/mbruzek/bundler

./bundler.py update path/to/bundle.yaml
(Queries charm store and finds the latest versions, listing the updated bundle to stdout)

bundler has other features which I also found useful when maintaining bundles.

If this becomes a priority perhaps I could get some time allotted to add it to charm-tools.

adam-stokes commented 8 years ago

@mbruzek very nice! This will come in handy

marcoceppi commented 8 years ago

Can we get this moved into charm tools under bundle update?

On Fri, Jun 3, 2016, 7:15 PM Adam Stokes notifications@github.com wrote:

@mbruzek https://github.com/mbruzek very nice! This will come in handy

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/juju/charm-tools/issues/216#issuecomment-223716457, or mute the thread https://github.com/notifications/unsubscribe/AAET1XQOFRjHYuW280Z3X7-0QjcPQDpbks5qILWagaJpZM4IttMy .