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

fix: refactor to latest asdf best practices #62

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

jthegedus
Copy link
Owner

@jthegedus jthegedus commented Jun 30, 2022

Description

  • add Bats testing
  • add banned_commands.bats from asdf core to enforce POSIX and cross platform functionality as best as possible
  • refactor lib/* dir
  • write tests for utils/helpers

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Usage examples

How Has This Been Tested?

Checklist:

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

# followed by an underscore (indicating it's a variable and not a
# command).
for cmd in "${banned_commands[@]}"; do
run bash -c "grep -nHR --include \*.bash --include \*.sh '$cmd' . \
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The listed dirs to check does not seem to be working as expected. It is not capturing banned commands in some of the bin/ commands. Need to fix.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is because of the --include as the files in bin and lib do not have extensions being grepped for

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.

None yet

1 participant