-
Notifications
You must be signed in to change notification settings - Fork 114
Conversation
I've updated this PR description to add some tasks and indications. @rmarquis I'm not sure about your idea about releasing version 5.0. Is there any additional task you want to complete besides documenting the code? |
@ChuckDaniels87 Some ideas were mentioned in #443:
But above all: no new features or apparent changes. If something must be changed, this should occur either before or after pacaur 5 release. |
We can use a GitHub project to organize all this work (see an example). On this PR, we can track all the documentation but we should create other PRs for tracking different tasks (splitting code, reusing makepkg, etc.). |
@ChuckDaniels87 Added you as collaborator. Feel free to play with the new project board or push to the pacaur 5 branch. Please do not push changes to master prior to discussion, thx! |
@rmarquis Thanks for the invitation! I'll try to figure out the best way to organize the workflow. |
Before starting to document. Does Edit: I mean other use than throwing generic errors. For example, use return value to identify the cause of the error and do something according to that. |
Generic errors only. |
libpacaur/deps.sh
Outdated
@@ -3,6 +3,12 @@ | |||
# deps.sh - functions related to dependency resolution | |||
# | |||
|
|||
## | |||
# Dependency solver that wraps both pacman and AUR packages depedency |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo here: "depedency"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
## | ||
# Sort dependencies to ensure correct resolution order. | ||
# | ||
# usage: SortDepsAur( $aur_packages ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note #652 here. This would ideally be merged with FindDepsAur() - I just haven't took time to do it properly yet.
Not directly related to documentation but to code structure: I think |
I do agree. |
Then, do I move them to main script? Where do you consider that would be the right place? Another question: why |
Hmm, I think I'd actually put
Seems to be a leftover from some refactoring I did a long time ago. I'll clean this up in the master branch. |
I think it is better to keep them separated. Main script |
I've been thinking about this. Moving SetJson() only to Just an idea about |
Yes, keeping all Json related functions together is logical, and I guess The only function I don't like to see in main.sh is |
I was wondering if a separated file (
I think this is perfect. |
A specific json.sh file sounds good to me! 👍 |
5cf1971
to
03c42ea
Compare
I moved JSON functions to a new script and added vim config at the end of each file. I've rebased the pull request to avoid conflicts. Any other change or addition that could be on this PR? |
Don't think so, additional suggestion might come later on. |
Should I merge it or just keep it open for some time if something new comes up? |
Whichever you'd like, but I'd prefer to see the commits squashed together before merging. I don't think there is a need to have many commits that only do code reorganization and doc (just my opinion of course). |
* Move IgnoreDepsChecks() from deps.sh to checks.sh. * Minor fix in pkgs.sh
* Rename info.sh to aur.sh. * Move JSON functions to a new script.
* Add vim config to all scripts
Reduced to 3 commits. 👍 |
I've merged this PR. I think it is better to open other PRs to different features and it will also avoid possible conflicts. Edit: I've created a merge commit against my will. I'll try to fix it. |
Btw, did you intend to improve the documentation of the functions internally, rather than just their headers? I forgot about it, but I thought the main issue (for a third part eye) wasn't what the general idea the functions were doing, but the detail of it. |
As a first approach, I tried to understand how program works globally. I intended to comment function internals in a separate PR. I'm pretty busy these days but I try to do it as soon as possible. Edit: I've created a Card in the Project panel to not forget this. |
All right, thanks for the clarification. No worries, there is need to hurry - I'm myself pretty busy. |
Lets open this PR to work and discuss the documentation of the code.
Related to #443
The following list shows the tasks to do:
pacaur
)libpacaur/aur.sh
)libpacaur/cache.sh
)libpacaur/checks.sh
)libpacaur/deps.sh
)libpacaur/json.sh
)libpacaur/main.sh
)libpacaur/pkgs.sh
)libpacaur/utils.sh
)Commented functions may use
makepkg
style and include:For example (taken from
makepkg
-libmakepkg/util/option.sh.in
):