iterative / gto

🏷️ Git Tag Ops. Turn your Git repository into Artifact Registry or Model Registry.
https://dvc.org/doc/gto
Apache License 2.0
142 stars 16 forks source link

Condense output when multiple tags are created #304

Open aguschin opened 1 year ago

aguschin commented 1 year ago

If assign created a version, you'll get this long output:

$ gto assign classifier \
        --repo $REPO \
        --version v0.0.2
        --stage dev 
Created git tag 'classifier@v0.0.2' that registers version
Running `git push origin classifier@v0.0.2`
Successfully pushed git tag classifier@v0.0.2 on remote.
Created git tag 'classifier#dev#1' that assigns stage
Running `git push origin classifier#dev#1`
Successfully pushed git tag classifier#dev#1 on remote.

Would be more friendly to get something like:

$ gto assign classifier \
        --repo $REPO \
        --version v0.0.2
        --stage dev 
Created git tag 'classifier@v0.0.2' that registers version
Created git tag 'classifier#dev#1' that assigns stage
Running `git push origin classifier@v0.0.2 classifier#dev#1`
Successfully pushed git tags on remote.