Implementation for repo cli command
Project description
hmd-cli-repo
A CLI application for creating NeuronSphere compliant project repositories.
Additional Requirements
- Git
Basic Usage
hmd repo create
will provide prompts to choose which Project Type Category and then Project Type you want to create.
After having selected a Project Type, you will be prompted for any additional information need to create the project, i.e. a name for the project.
After all prompts have been answered, it will render a series of templates into a folder with the Project Name. This will be a standard Git repository and all generated files will be committed for you.
Configuration
All configuration is done via environment variables set in an hmd.env
file.
These variables can be set via the hmd configure
tool.
Required Variables
HMD_HOME
: a folder used to contain Local NeuronSphere specific configuration and data. Thehmd.env
file gets create in here at$HMD_HOME/.config/hmd.env
.
Optional Variables
HMD_REPO_ORG_NAME
: a common org code prefix to prepend to all create repo names.HMD_REPO_REMOTE_GITHUB_ENABLED
: if set to "true", a remote repository will be created in GitHub upon runninghmd repo create
HMD_GH_USERNAME
: the GitHub username to useHMD_GH_PASSWORD
: the GitHub PAT to useHMD_GH_ORG_NAME
: the GitHub Organization to create the repository in
Commands
- hmd repo create: create a NeuronSphere compliant repository based on chosen Project Type
- hmd repo add: overlay a new Project Type onto an existing repository in a new branch
- hmd repo configure: configure
hmd-cli-repo
specific environment variables in$HMD_HOME/.config/hmd.env
- hmd repo pull-all: pull all changes and new repositories from a GitHub organization locally into
$HMD_REPO_HOME
- hmd repo create-remote: create a remote repository for an existing local repo, will set
origin
remote in Git to new remote.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for hmd_cli_repo-0.3.122-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1668e982117c780f9566cc6c48d41434d1b1b1c92e60e93826aa295efb50c14 |
|
MD5 | 90060b3f9b39f906d4805c649d0e1dcd |
|
BLAKE2b-256 | bfabaa3b67595e93606c35f89755ba991dcd4b9f333bb59301be8d12bd280276 |