open-repo-cli
CLI that quickly opens GitHub pages.
Installation
npm install --global open-repo-cli@^1.0.1
yarn global add open-repo-cli@^1.0.1
(if configured properly)
npm install --global @jaid/open-repo-cli@^1.0.1
Example
Open the repository for the current project
cd /c/Users/Jaid/Projects/readable-ms
open-repo-cli
# https://github.com/Jaid/readable-ms
Open a repository you own
This reads your .gitconfig
(user.username
or user.name
property) to determine your GitHub username. Can be overwritten with env variable githubUser
or option --github-user
.
open-repo-cli sure-array
# https://github.com/Jaid/sure-array
Open any repository
open-repo-cli webpack/tapable
# https://github.com/webpack/tapable
Open a repository by npm package name
open-repo-cli npm chalk
# https://github.com/chalk/chalk
open-repo-cli npm @babel/core
# https://github.com/babel/babel
Open any repository file
open-repo-cli webpack/tapable/package.json
# https://github.com/webpack/tapable/blob/master/package.json
CLI Usage
After installing package open-repo-cli
globally, you can use its command line interface.
open-repo-cli
For usage instructions:
open-repo-cli --help
Development
Setting up:
git clone git@github.com:jaid/open-repo-cli.git
cd open-repo-cli
npm install
Testing:
npm run test:dev
Testing in production environment:
npm run test
License
MIT License
Copyright © 2020, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)