Refactor to use an object-oriented pattern for Sbot #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "sbot_object"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR takes the previously-implemented
sbotclifunctions and converts them into methods on theSbotstruct. Aninit()constructor method has been added for initialising theSbotstruct. It takes twoOption<OsString>args as parameters; one representing thesbotclipath and the other representing thego-sbotworking directory.Nonecan be provided to use the default path.Thanks @notplants for the suggestion.
The code example tells the story:
LGTM
🙏 🖤