Skip to content
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

Remove redundant code in usage function #528

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

DannyBen
Copy link
Owner

@DannyBen DannyBen commented Jul 5, 2024

Before this PR, when command summary and help were the same (single line help), the generated code looked like this:

# :command.usage
rush_usage() {
  if [[ -n $long_usage ]]; then
    printf "rush - Personal package manager.\n"
    echo

  else
    printf "rush - Personal package manager.\n"
    echo

  fi

This PR fixes that


Note that the other changed files in the PR (approvals mostly) are due to updates in completely.

@DannyBen DannyBen merged commit 3bd01e5 into master Jul 5, 2024
8 checks passed
@DannyBen DannyBen deleted the remove/redundant-usage-code branch July 5, 2024 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant