Feature hasn't been suggested before.
Describe the enhancement you want to request
The documented opencode-work function is handy because it combines AWS auth and starting up OpenCode.
However, the auth runs every time you use the function, even if it doesn't need to run.
Modify the opencode-work shell function to check to see if the current shell has the correct AWS auth tokens prior to running auth. If it does, then auth is skipped and OpenCode is run. If not, then AWS auth should run.
Feature hasn't been suggested before.
Describe the enhancement you want to request
The documented
opencode-workfunction is handy because it combines AWS auth and starting up OpenCode.However, the auth runs every time you use the function, even if it doesn't need to run.
Modify the
opencode-workshell function to check to see if the current shell has the correct AWS auth tokens prior to running auth. If it does, then auth is skipped and OpenCode is run. If not, then AWS auth should run.