Refactor to use an object-oriented pattern for Sbot #2
Loading…
x
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
sbotcli
functions and converts them into methods on theSbot
struct
. Aninit()
constructor method has been added for initialising theSbot
struct
. It takes twoOption<OsString>
args as parameters; one representing thesbotcli
path and the other representing thego-sbot
working directory.None
can be provided to use the default path.Thanks @notplants for the suggestion.
The code example tells the story:
LGTM
🙏 🖤