-
Notifications
You must be signed in to change notification settings - Fork 881
coder template pull <name>
does not pull as a folder
#2651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi! So the behavior of this command is intentional. It's intended to emulate the behavior of a Linux utility where you can take the output of this command (a tar archive) and redirect it to an arbitrary file. Since
I have noticed that you're on Windows, is it difficult to use this command in its current state for you? I have little experience on Windows but my understanding is that it's common to drop into WSL when doing command line work. |
WSL isn't available on all versions of Windows. I understand wanting to align to a standard, but also I think a decent compromise would be to have two commands. I'm thinking @kylecarbs what do you think? |
I'd rather have the tar be default behavior, but I think export is a better name. What do you think about a --extract flag? We could default to cURL behavior, where if the output is a TTY we require explicit - as the argument. |
I think an |
Well yeah, that's why you implemented it! But |
I spent a few hours fiddling with templates yesterday, and I'm absolutely 100% convinced that |
I definitely think the wording was confusing, I thought it would be like |
We could export as a directory if stdout is detected as a TTY. |
sounds good to me, but then in |
This gets me thinking. We could copy the UX of tar for something intuitive: Always require a
|
This looks good to me, except you can't pipe tars in windows (it doesn't work), so maybe add a case where if $path ends with |
This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity. |
v0.7.4+3f97767
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
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
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.The text was updated successfully, but these errors were encountered: