Skip to content

coder template pull <name> does not pull as a folder #2651

Closed as not planned
Closed as not planned
@phorcys420

Description

@phorcys420
  • Version: v0.7.4+3f97767
  • Host: Windows

coder templates pull <name> <path> pulls the template and writes it as a tar instead of extracting it's contents.
C:\Users\fr20100048\Documents\basic-env>coder templates pull basic-env basic-env

image


coder templates pull <name> without any path prints out the tar's contents to stdout.
C:\Users\fr20100048\Documents\basic-env>coder templates pull basic-env

README.md0000666000000000000000000000052414255567654010553 0ustar0000000000000000---
name: Basic dev environment
description: Basic environment with code-server.
tags: [local, docker]
---

[...]
main.tf0000666000000000000000000000340314255560711010535 0ustar0000000000000000terraform {
  required_providers {
    coder = {
      source  = "coder/coder"
      version = "0.4.2"
    }
    docker = {
      source  = "kreuzwerker/docker"
      version = "~> 2.16.0"
    }
  }
}

[...]

Maybe getting a tar should still be possible with a --tar argument or --format tar argument? (or if <path> ends with .tar?).
Also, coder template pull <name> . currently isn't possible, but that would be a nice feature to have so i'm suggesting it here since it's related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThis issue is like stale bread.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions