Dan Anglin
c04cd7e8a5
Changes: - moved the command names from main to the executor package. - moved the unknownCommandError to the executor package and renamed it to UnknownCommandError. - define the command summaries within the executor package. - replace the switch statement in main.run() with a hashmap for looking up the corresponding executor to the given command. - transformed BlockExecutor to BlockOrUnblockExecutor. - transformed FollowExecutor to FollowOrUnfollowExecutor. Additional fixes: - fixed flag for the version executor.
24 lines
702 B
Go
24 lines
702 B
Go
// SPDX-FileCopyrightText: 2024 Dan Anglin <d.n.i.anglin@gmail.com>
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
package executor
|
|
|
|
const(
|
|
resourceAccount = "account"
|
|
resourceBlocked = "blocked"
|
|
resourceBookmarks = "bookmarks"
|
|
resourceBoost = "boost"
|
|
resourceFollowers = "followers"
|
|
resourceFollowing = "following"
|
|
resourceFollowRequest = "follow-request"
|
|
resourceInstance = "instance"
|
|
resourceLike = "like"
|
|
resourceLiked = "liked"
|
|
resourceList = "list"
|
|
resourceNote = "note"
|
|
resourceStatus = "status"
|
|
resourceStar = "star"
|
|
resourceStarred = "starred"
|
|
resourceTimeline = "timeline"
|
|
)
|