-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkcloud: enhance documentation #228
mkcloud: enhance documentation #228
Conversation
ce08f52
to
ce893ae
Compare
them are listed below. To get a complete list run: `./mkcloud -h` | ||
`mkcloud` consists of different steps which can be run independently, provided the order is logical. | ||
``` | ||
all -> expands to: cleanup prepare setupadmin addupdaterepo runupdate prepareinstcrowbar instcrowbar rebootcrowbar setupcompute instcompute proposal testsetup rebootcompute |
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.
I'm not sure we want to duplicate all this expansion info, because it's too easy for it to get out of sync with the code. DRY! Better to ensure that the user can find out what any step expands to by running mkcloud
in a particular way.
Thanks a lot for working on this! Needs a bit more discussion with others about where the docs should go. |
a5d817e
to
68551b3
Compare
I would vote for moving the quick introduction to the docs/mkcloud.md and further read the usage from that file |
ee87bf5
to
e25ef8a
Compare
Do you mean DRY should apply to |
Yes.
It's separate, but it's also strongly coupled to code and does not justify duplication.
The user can already see expansions from
I strongly disagree! That's exactly what we should try hard to avoid! It is totally unacceptable for documentation to get out of sync.
Because people will always forget to update both places. That is the reason at the heart of why DRY is such an important golden rule! If there is repetition, at least one of the duplicate copies will get out of sync and cause problems. Another approach would to be to define the expansions in a separate config file, and then have the code reference that, and have the docs auto-generated from it via a simple script. Then there would be two copies of the expansion data, but that would be OK because only one of them would be authoritative. But that's probably overkill in this case. I'm just mentioning it as an alternative technique for sticking to DRY in other scenarios. |
do | ||
[[ $line =~ "\`mkcloud\` consists of" ]] && out=1 | ||
[[ $line =~ "\`\`\`" ]] && continue | ||
[[ $line =~ "### Additional Information" ]] && exit 1 |
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.
I guess you meant
[[ $line =~ "### Additional Information" ]] && out=0
I think we should split the documentation into different files. Maybe usage, configuration and installation? The advantage is we have a clear structure and we can reference explicit parts in the cmd-line help or in the GitHub readme. |
They sound like good suggestions to me. Main thing I'm concerned about is eliminating the risk of further divergence between docs and code in the future. |
If our goal is to keep mkcloud as a big beast, then I would agree that it might make sense to have the documentation separately. But what we currently try to achieve is, to split mklcoud into a set of smaller specialized tools. And these small tools should bring their own documentation with themselves. So the refactoring will also take care, that the documentation gets split off into smaller chunks. Therefore 👎 from me. |
@MaximilianMeister There are some valuable changes in this PR which we want to merge, but also some bits we disagreed with. Please could you drop the contentious bits so we can get the other fixes in? |
Rebase needed as the two places of documentation inside mkcloud were merged meanwhile. And I am still no convinced that this is the way to go with depending on a different file for the usage. |
e25ef8a
to
e436640
Compare
@jdsn I was only talking about the bits which are obviously right. |
@MaximilianMeister are you "over it" or "all over it" ?! |
get rid of duplicated line
e436640
to
e4bd90e
Compare
@aspiers :-) lets say I don't cry anymore... so I am over it well... now I am done ;-) reviews welcome |
Haha :-) Great, thanks! 👍 |
The changes looks good to me. 👍 If this is the final solution we will see in the future. |
mkcloud: enhance documentation
No description provided.