Skip to content

Piping output of coder templates pull to a file renders as a binary/unsupported text encoding #3398

@ericpaulsen

Description

@ericpaulsen

When running coder templates pull <template-name> >> file.txt, it is unable to be viewed, since it is created as a binary/unsupported text encoding. Tested & reproduced with 3 templates using 0.8.2.

Upon further investigation, I noticed the first line of the output shows an odd encoding, related to the template README file:

> coder templates pull gcp-ubuntu-docker

README.md0000644000076500000240000000214514273763201012451 0ustar00ericstaff00000000000000---
name: Develop in Linux on Google Cloud
description: Get started with Linux development on Google Cloud.
tags: [cloud, google]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions