Troubleshoot local shell plugin hanging #455
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey, I'm after a bit of help please? I use a local dev CLI tool called
fooctl
, it simplifies my interactions with cloud resources. To usefooctl
, I must provide a credentials file at~/.fooctl/credentials
. The credentials file expects aUUID
andToken
(I guess in theini
format, e.g.UUID = "4191234b-foo5-4bar-af3f-3d8266111d8b"
).I followed the tutorial, but I'm getting stuck - literally.
My plugin validates & builds fine. It's also successfully looking for & importing the
UUID
andToken
in 1Password when a credentials file already exists.However, it hangs when using any
fooctl
commands with an arg.I'm running this on macOS
14.4.1 (23E224)
from~/dev/shell-plugins
.This is what happens when I run
footctl
without any args, works as expected:Now to use
fooctl
, I need to use thedaemon
command (which requires the credentials file):Interestingly, if I run
fooctl configure
(I thought I could avoid doing this as this is what the shell plugin creates), it gets a bit further. It creates the credentials file which I can open & see correct contents... but then hangs:Can you spot anything wrong in the code, or suggest ways to troubleshoot this?