Refactor to use an object-oriented pattern for Sbot #2
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
peach-lib
peach-network
peach-oled
peach-stats
peach-web
question
refactor
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PeachCloud/go-sbotcli-rs#2
Loading…
Reference in New Issue
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
🙏 🖤