Azure / aztfexport

A tool to bring existing Azure resources under Terraform's management
https://azure.github.io/aztfexport/
Mozilla Public License 2.0
1.63k stars 190 forks source link

Azure Terrafy long pathname is cut off #17

Open simone-bennett opened 3 years ago

simone-bennett commented 3 years ago

When Azure Terrafy is initialising, long path names are cut off so you can't see the resource type or name to enter it.

For example: _/subscriptions/0000000000-000000000-00000000/resourceGroups/rg-core-infra/providers/Microsoft.Automation/automationAccounts/CoreInfraAutomationAC/connectionTypes/AzureClassicCertif ..

_│ /subscriptions/0000000000-000000000-00000000//resourceGroups/rg-core-infra/providers/Microsoft.Automation/automationAccounts/CoreInfraAutomationAC/connectionTypes/AzureServicePrinci...__

I can't see the full path, and as such, don't know what to enter for resource_provider_name.resource_name My only option is to skip those resources which means a large portion of the config is not documented.

magodo commented 3 years ago

@simone-bennett Thank you for pointing this out. The reason those names are cut off is due to the implementation of the bubbletea list view (the terminal UI framwork I used). One way to see the full stuff is to resize your terminal size/scale. But if you are on Windows, some how the resizing will cause the UI corrupt. So you might want to do the adjustment before running the tool.

A propsal to solve this is to add some shortcuts like <- or -> to allow users move the content of the highlighted line. While this will need some work on the list view implementation.