aws-sso-cli
aws-sso-cli copied to clipboard
Testing on Windows
I haven't done any testing on non-macOS devices. Should test windows
Setup doesn't work at all using git/shell:
./aws-sso-1.5.1-windows-amd64.exe --config foo.yaml
level=warning msg="No config file found! Will now prompt you for a basic config..."
v SSO Instance Name (DefaultSSO): |Default
level=fatal msg=^D
Setup kinda works with powershell, but some of the questions are doubled up. Also promptui.Select entries are lost completely, per: https://github.com/manifoldco/promptui/issues/180
posener/complete
is completely broken in PowerShell. basically unusable. :(
Complete works fine in cmd
, but get the following warning which seems to not cause any problems?
level=warning msg="Unable to cache role credentials in secure store" func=main.GetRoleCredentials file="/Users/aturner/go/src/github.com/synfinatic/aws-sso-cli/cmd/main.go:277" error="The stub received bad data.
When running list
I see the role credentials cached
Windows we need to run set
(not setx
) commands, but you can't just exec.Command('set', ...)
because it's a built in and not in the path?
Apparently, typically you write these to a batch file and then the user executes the script? Also, since we're not using $(eval ...)
on Windows, we can use the interactive selector for eval