devops-rob / target-cli

A CLI tool to manage context profiles for HashiCorp tools
Apache License 2.0
32 stars 5 forks source link

Fix config initialization panic #16

Closed picatz closed 10 months ago

picatz commented 10 months ago

This PR aims to fix #13, adjusting the control flow to avoid the config initialization-related panic.

Additionally, I also noticed the non-standard github.com/pkg/errors packages was being used, but we can use the standard library's errors package. My editor (using gopls) changed the import structure.

devops-rob commented 10 months ago

You are the best @picatz Thanks for this. LGTM. Happy to merge