Skip to content

feat(cli): display autogenerated template name when running coder templates push #21111

@phorcys420

Description

@phorcys420

As a template admin, I would expect the coder templates push CLI command to return the version name it just generated.
example scenario: I have pushed two updates, I've updated and I’m on this version but I’ve got no clue if it's actually the right one.

Current output:

user@host> coder templates push --activate=false --org=experiment -y
Re-using provisioner tags from the active template version.
[...]
┌───────────────────────────────────────────────┐
│ Template Preview                              │
├───────────────────────────────────────────────┤
│ RESOURCE                                      │
├───────────────────────────────────────────────┤
│ kubernetes_deployment.main                    │
│ └─ main (linux, amd64)                        │
├───────────────────────────────────────────────┤
│ kubernetes_persistent_volume_claim.home       │
└───────────────────────────────────────────────┘
Updated version at Dec  4 21:07:48!

I would expect something more like this:

user@host> coder templates push --activate=false --org=experiment -y
(same output)
Updated template with version brave_hoover8 at Dec  4 21:07:48!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions