We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Almost each hubctl extensions define the same base environment variables.
HUB_HOME="${HUB_HOME:-$(dirname "$0")}" HUB_WORKDIR="${HUB_WORKDIR:-$(pwd)}" HUB_EXTENSION="$(basename "$0" | sed 's/-/ /g')"
Where:
HUB_HOME
HUB_WORKDIR
HUB_EXTENSION
And adds them to PATH: PATH="$HUB_HOME:$HUB_HOME/bin:$HUB_WORKDIR:$HUB_WORKDIR/bin:$PATH"
PATH
PATH="$HUB_HOME:$HUB_HOME/bin:$HUB_WORKDIR:$HUB_WORKDIR/bin:$PATH"
Such an approach leads to inconsistency in the development of new extensions where the exact definition is added by copy/paste or even skipped.
We could improve this situation by adding these variables before running the extension.
The text was updated successfully, but these errors were encountered:
TheRealSpaceShip
No branches or pull requests
Almost each hubctl extensions define the same base environment variables.
Where:
HUB_HOME
is a path to the root directory of hubctl extensionsHUB_WORKDIR
is a path where hubctl is runningHUB_EXTENSION
is the user-friendly name of the hubctl extensionAnd adds them to
PATH
:PATH="$HUB_HOME:$HUB_HOME/bin:$HUB_WORKDIR:$HUB_WORKDIR/bin:$PATH"
Such an approach leads to inconsistency in the development of new extensions where the exact definition is added by copy/paste or even skipped.
We could improve this situation by adding these variables before running the extension.
The text was updated successfully, but these errors were encountered: