-
Notifications
You must be signed in to change notification settings - Fork 97
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
Upstreamize Hammer guide #3197
Merged
Lennonka
merged 19 commits into
theforeman:master
from
Lennonka:upstreamize-hammer-guide
Aug 26, 2024
+1,409
−14
Merged
Upstreamize Hammer guide #3197
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
cca6e16
Add Hammer CLI files
Lennonka 3f89541
Run the upstreamize script
Lennonka 1790381
Upstreamize manually
Lennonka 06e1903
Reset generated reference to empty
Lennonka 4261e29
fixup! Upstreamize manually
Lennonka 2d65b15
fixup! Upstreamize manually
Lennonka 85b6aff
fixup! Upstreamize manually
Lennonka dba7726
Update header
Lennonka 042c496
Incorporate suggestions
Lennonka e97feed
fixup! Incorporate suggestions
Lennonka 45e2545
fixup! Incorporate suggestions
Lennonka 2d2cc23
Change guide title
Lennonka 6f55673
Improve the generate script
Lennonka 0f72942
Move README
Lennonka 5b2767f
Move assembly and modules to common folder
Lennonka a3f8fca
Fix a Vale error
Lennonka 5183c45
Fix a Vale error
Lennonka 125aec7
Incorporate feedback
Lennonka 90dc266
Replace RH with Team
Lennonka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// DO NOT EDIT MANUALLY | ||
// Use the generate-hammer-reference.sh script to update | ||
|
||
include::modules/con_hammer-reference.adoc[] | ||
|
||
// Placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[id='hammer-cheat-sheet'] | ||
= Hammer cheat sheet | ||
|
||
Hammer is a command-line tool provided with {ProjectNameX}. | ||
You can use Hammer to configure and manage a {ProjectServer} by using either CLI commands or shell script automation. | ||
The following cheat sheet provides a condensed overview of essential Hammer commands. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[id="hammer-reference"] | ||
= Hammer reference | ||
|
||
You can review the usage of Hammer statements. | ||
|
||
ifeval::[ "{ProjectVersion}" == "nightly" ] | ||
The reference is not provided for Nightly. | ||
Select a stable release to view the reference. | ||
endif::[] | ||
ifeval::[ "{ProjectVersion}" != "nightly" ] | ||
This reference is up to date with the versions of Hammer components released for {ProjectXY}. | ||
endif::[] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 what to do with this file.
The problem is that the reference should be generated separately for Foreman, Katello, orcharhino, and Satellite because of branding and presence of Katello functionality in hammer help.
If I generate it in downstream and keep this file in upstream, our sync will overwrite it from upstream again. Therefore, it would be better to remove it in upstream.
However, if I don't include it in upstream, the build will not pass because it's required by
master.adoc
.So the solution might be to exclude this file from syncing in downstream. Will you be able to do that in your sync too, @maximiliankolb?
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.
Yeah, I can handle this. No worries.