Refactor command structure #92
Labels
No labels
beginner friendly
bug
chore
documentation
duplicate
feature
help wanted
invalid
needs-triage
question
size/L
size/M
size/S
size/XL
size/XS
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/dalmatian#92
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Currently, the command structure has a main command and subcommands, e.g. (
/courseshasunlocksandcourse-info).We want to move these into separate files, to reduce file size and command typing (less characters to type). However, we still want to keep the files organized.
Things to do:
Move all the subcommands into their own files, in a grouped folder. For example, there will be a(resolved by #152)src/commands/coursesfolder that contains anunlocks.ts,course-info.ts,fce.ts, etc.Move all shared functions in to autils.tsfor that folder. For example, we would move theCoursetype intosrc/commands/courses/utils.tsRewrite the command handler to match this new structure