I am trying to use rclone by importing the source directly in a golang project to run copy/delete commands. What I want to know is, if its possible for LoadConfig to accept a string as an argument instead of reading config from a file?
I know I can just fork it and modify the program to accept it as an argument but is there already a way to do this? I want to pass s3 details to rclone to detect remote correctly when I parse and create FS from path.
Thanks! Yeah I saw that route of exporting all the env vars as well but I though that will be dirty implementation when I already have env vars of my own application. I think ConfigFileSet/Get should be good for my use case, I'll try and report back.