Skip to content

Conversation

@cimnine
Copy link
Collaborator

@cimnine cimnine commented Oct 8, 2022

Related Issue: N/A

New Behavior

The help text is now a HEREDOC, which makes it easier to maintain.
It also contains some highlighting and colors to make the help text easier to read.

Contrast to Current Behavior

It was hard to maintain the help with all the echo statement. It made it especially hard to maintain the correct indention.

Discussion: Benefits and Drawbacks

The only drawback I see is that certain build systems possibly don't handle the formatting (bold, cyan, green) well. But on a build system the help text should never be displayed, so I see that as a neglectable drawback.

Changes to the Wiki

n/a

Proposed Release Note Entry

Improved the formatting of the help text of the build.sh, see ./build.sh --help.

Double Check

  • I have read the comments and followed the PR template.
  • I have explained my PR according to the information in the comments.
  • My PR targets the develop branch.

@cimnine cimnine added the maintenance The issue describes a maintenance task, such as upgrading a dependency to a certain version. label Oct 8, 2022
@cimnine cimnine self-assigned this Oct 8, 2022
@cimnine cimnine force-pushed the HereDocForBuildHelp branch from 21ce06e to d96e8f1 Compare October 8, 2022 15:19
@cimnine cimnine requested a review from tobiasge October 8, 2022 15:20
@cimnine cimnine merged commit a3680b2 into netbox-community:develop Oct 10, 2022
@cimnine cimnine deleted the HereDocForBuildHelp branch October 10, 2022 16:30
@cimnine cimnine mentioned this pull request Oct 25, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance The issue describes a maintenance task, such as upgrading a dependency to a certain version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants