Azure / Azure/aztfexport

CLI has captured keyboard input and has locked my pwsh session

Open
#266 1 comment 1 reaction 0 assignees View on GitHub
bug upstream-ui
Dominant language
Go
Stars
1.9k
Forks
221
Avg merge
15h 43m
Merged PRs (30d)
9

Description

```
PS D:\foo> aztfy.exe res --hcl-only /subscriptions/foo/resourceGroups/foo/providers/Microsoft.Web/sites/foo

The output directory is not empty. Please choose one of actions below:

* Press "Y" to overwrite the existing directory with new files
* Press "N" to append new files and add to the existing state instead
* Press other keys to quit

>
```
At this point the application is capturing all keyboard input and doesn't respond. The cursor flashes as if it's ready for input, but there are no keys echoed to the screen. I cannot even break out of it with `CTRL+C`.

This is reproducible on my machine. If I run the tool but exit out before generating hcl, then the next time I run it, the application is locked up. Even though I exited the application on the first run, file are still generated...
```
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 10/19/2022 12:50 PM .terraform
-a--- 10/19/2022 12:50 PM 1185 .terraform.lock.hcl
-a--- 10/19/2022 12:51 PM 2 aztfyResourceMapping.json
-a--- 10/19/2022 12:50 PM 182 provider.tf
```
If I just wipe the files created, running the tool works again. The bug is easily worked around, but thought I should report it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.