-
Notifications
You must be signed in to change notification settings - Fork 3
Guideline for one_liners
adrianbartyczak edited this page Dec 10, 2017
·
16 revisions
Guideline for one-liners in Shell.
- has a description.
- is continued on a single line (for easy maintenance of layout when copying and pasting to a script or terminal).
One-liner files are created in the following format:
(Note: Any section in addition to Description is included if necessary)
# ======= #. SECTION NAME =====================================
# Description
one-liner
# Description
one-liner
# Description
# Note: Note line 1
# Note line 2
# ...
one-liner
- The maximum length for a documentation line is 120 characters.
- A documentation section continued on another line is indented 2 spaces.
- Any documentation section other than Description is included if necessary.
For an example, see one-liners-gnu-linux-output_only-single-value.bash.
- A variable name uses acronyms whenever possible.
All other code style rules are up to the contributor.