node-ghr
v1.0.1
Published
Run a file from a GitHub repository in your command line
Readme
ghr - GitHub Runner
Run a file from a GitHub repository in your command line
Installation
sudo npm install -g ghrUsage
ghr <user>/<repo> <branch?> <files?> <tempPath?>Where user is the GitHub username, repo is the repository name, branch is the branch name, files is the file or files to download (separated by commas), and tempPath is the path to download the files to.
Default Values
userandrepoare requiredbranchdefaults tomasterfilesdefaults toindex.jstempPathdefaults to~/.ghr
Example
ghr systemsoftware/dirtable ghr systemsoftware/dirtable master "index.js, other_file.js"ghr systemsoftware/dirtable master index.js ~/tempghr systemsoftware/dirtable master index.js --c --kRemove ~/.ghr
~/.ghr is a directory that stores the files downloaded by ghr. To remove it, run:
ghr --cleanNote: ghr will automatically attempt to remove the directory after running the repository, unless the
--keepflag is used.
Optional Flags
Flags can be used in any order, but must be placed after all other arguments
--cor--clearto clear the console before running the file--skip-depsor--sdto skip installing dependencies--keepor--kto keep the directory after running the repository
