Nushell script for granted #560
Replies: 3 comments
-
I've updated it to support the latest |
Beta Was this translation helpful? Give feedback.
-
This doesn't work when you don't enter a role i.e just run # Run assumego and collect its output
let output = with-env {GRANTED_ALIAS_CONFIGURED: "true"} {
assumego ...$args
}
let granted_output = $output | lines
let granted_status = $env.LAST_EXIT_CODE Basically don't pipe it to |
Beta Was this translation helpful? Give feedback.
-
Ah yeah, it looks like I did update my local script in exactly the same way you did :) I've updated the gist with what I have in case someone else stumbles upon it. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm a nushell user and I wanted to try out
granted
so I tried to port theassume
wrapper script. This is what I came up with, in case it's useful to someone else:Beta Was this translation helpful? Give feedback.
All reactions