enbas/internal/executor
Dan Anglin c04cd7e8a5
refactor: update code for the executor package
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.
2024-06-10 18:59:01 +01:00
..
accept_or_reject.go refactor: update code for the executor package 2024-06-10 18:59:01 +01:00
account.go fix: update error handling 2024-06-02 11:35:43 +01:00
add.go feat: add pager support 2024-06-09 15:58:10 +01:00
block_or_unblock.go refactor: update code for the executor package 2024-06-10 18:59:01 +01:00
commands.go refactor: update code for the executor package 2024-06-10 18:59:01 +01:00
create.go feat: add pager support 2024-06-09 15:58:10 +01:00
delete.go feat: add pager support 2024-06-09 15:58:10 +01:00
edit.go feat: add pager support 2024-06-09 15:58:10 +01:00
errors.go refactor: update code for the executor package 2024-06-10 18:59:01 +01:00
executor.go fix: update error handling 2024-06-02 11:35:43 +01:00
flags.go refactor: update code for the executor package 2024-06-10 18:59:01 +01:00
follow_or_unfollow.go refactor: update code for the executor package 2024-06-10 18:59:01 +01:00
login.go feat: add pager support 2024-06-09 15:58:10 +01:00
remove.go feat: add pager support 2024-06-09 15:58:10 +01:00
resources.go refactor: update code for the executor package 2024-06-10 18:59:01 +01:00
show.go feat: accept or reject follow requests 2024-06-10 10:58:43 +01:00
switch.go feat: add pager support 2024-06-09 15:58:10 +01:00
usage.go chore: make the project REUSE compliant 2024-06-02 07:53:13 +01:00
version.go refactor: update code for the executor package 2024-06-10 18:59:01 +01:00
whoami.go fix: update error handling 2024-06-02 11:35:43 +01:00