Any list command fails with the below:
> target vault list
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x6be53e]
goroutine 1 [running]:
github.com/devops-rob/target-cli/cmd.glob..func22(0x9c08c0, {0x7448e1, 0x0, 0x0})
/home/runner/work/target-cli/target-cli/cmd/list.go:25 +0x9e
github.com/spf13/cobra.(*Command).execute(0x9c08c0, {0x9fd940, 0x0, 0x0})
/home/runner/work/target-cli/target-cli/vendor/github.com/spf13/cobra/command.go:944 +0x827
github.com/spf13/cobra.(*Command).ExecuteC(0x9c22a0)
/home/runner/work/target-cli/target-cli/vendor/github.com/spf13/cobra/command.go:1068 +0x3cd
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/work/target-cli/target-cli/vendor/github.com/spf13/cobra/command.go:992
github.com/devops-rob/target-cli/cmd.Execute()
/home/runner/work/target-cli/target-cli/cmd/root.go:146 +0x25
main.main()
/home/runner/work/target-cli/target-cli/main.go:6 +0x17
> target terraform list
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x6bea9d]
goroutine 1 [running]:
github.com/devops-rob/target-cli/cmd.glob..func26(0x9c1720, {0x7448e1, 0x0, 0x0})
/home/runner/work/target-cli/target-cli/cmd/list.go:123 +0x7d
github.com/spf13/cobra.(*Command).execute(0x9c1720, {0x9fd940, 0x0, 0x0})
/home/runner/work/target-cli/target-cli/vendor/github.com/spf13/cobra/command.go:944 +0x827
github.com/spf13/cobra.(*Command).ExecuteC(0x9c22a0)
/home/runner/work/target-cli/target-cli/vendor/github.com/spf13/cobra/command.go:1068 +0x3cd
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/work/target-cli/target-cli/vendor/github.com/spf13/cobra/command.go:992
github.com/devops-rob/target-cli/cmd.Execute()
/home/runner/work/target-cli/target-cli/cmd/root.go:146 +0x25
main.main()
/home/runner/work/target-cli/target-cli/main.go:6 +0x17
Any
listcommand fails with the below: