Implement init command and hopfiles #22
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: minecrust/hopper#22
Loading…
Reference in New Issue
No description provided.
Delete Branch "BlankParenthesis/hopper:impl-hopfiles"
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?
I went back and forth a lot on the best layout for hopfiles, but eventually stuck mostly to how it was described in the README. There are still a lot of questions surrounding the best format for this file and what info it should and should not store.
For example: should currently installed versions be stored here? what about project IDs rather than names? Regarding sources, I settled on a simple string format of "provider:modname" where provider can currenly only be "modrinth" with the expectation that other recognised sources
may exist in future.
Regarding the init command itself, I decided to avoid updating any existing file since this seemed like a predicatable and non-destructive implementation. I also briefly considered dropping the output location argument and having the file be written to stdout so that it could written by the shell, but stuck with the README once again.
In addition to all this, it's also possible an init command is unnesseary and the add/install command itself should be sufficient, but if a choice on that needn't be made right now this can be used as a placeholder to sketch out how hopfiles should be used.
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Forgejo.