git-hosting-env
% git-hosting-platform-env(1) Version 0.1.1 | Get and set the platform env
DESCRIPTION
Get and set the platform environment
A platform is a source or a target in a transfer operation.
USAGE
It's used and called internally by other scripts.
eval $(git-hosting-platform-env "platformName")
SYNOPSIS
ENV_PREFIX=GITURE Create environment export statement
git-hosting-env HostingName
where HostingName is a Git Hosting such as GitHub, Gogs, ....
ENV OUTPUT
This script return the following env:
GIT_PLAFORM: the platform typeGIT_TOKEN: the API tokenENV_PREFIX: The env prefix (ieGITURE)