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

feat: make wiz-dir configurable #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

defgenx
Copy link

@defgenx defgenx commented Jun 24, 2024

Description

Allow the plugin user to configure a specific directory for WIZ_DIR.

@defgenx defgenx force-pushed the feat/make-wiz-dir-configurable branch from e4faec4 to 0ea085d Compare June 24, 2024 20:32
Copy link

@toote toote left a comment

Choose a reason for hiding this comment

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

Just a minor comment. In addition to that, it is missing a test and documentation in the Readme.md file to let people know they can tune it.

@@ -2,7 +2,7 @@

set -uo pipefail

WIZ_DIR="$HOME/.wiz"
WIZ_DIR="${BUILDKITE_PLUGIN_WIZ_WIZ_DIR:=$HOME/.wiz}"
Copy link

Choose a reason for hiding this comment

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

I don't see a reason to re-assign the variable (and may cause issues) so using the default parameter substitution instead may be preferable for consistency with the others at least:

Suggested change
WIZ_DIR="${BUILDKITE_PLUGIN_WIZ_WIZ_DIR:=$HOME/.wiz}"
WIZ_DIR="${BUILDKITE_PLUGIN_WIZ_WIZ_DIR:-$HOME/.wiz}"

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.

2 participants