aws-sso-cli icon indicating copy to clipboard operation
aws-sso-cli copied to clipboard

Testing on Windows

Open synfinatic opened this issue 2 years ago • 4 comments

I haven't done any testing on non-macOS devices. Should test windows

synfinatic avatar Dec 16 '21 15:12 synfinatic

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

synfinatic avatar Dec 17 '21 04:12 synfinatic

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

synfinatic avatar Dec 17 '21 04:12 synfinatic

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

synfinatic avatar Dec 17 '21 16:12 synfinatic

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

synfinatic avatar Dec 20 '21 20:12 synfinatic