My use case is that I have a program that calls /usr/bin/ipfs, and I want to point that on a remote node without modifying the code of that program.
I’ve tried Addresses.API, but that’s obviously stands for a listening address, not a contact one. Then I’ve tried and Gateway.APICommands, it didn’t work either, but I’m not sure if it should because I couldn’t find any documentation on that.
Should be ok with something like exec ipfs --api <api> $@ I think?
Maybe. I think this should probably be environment-variable-controlled behaviour. The config file is more the “server” side configuration, while this is a client option. There might already be issues for this, or similar.