shelljs-github-user
shelljs-github-user
uses shelljs
and git config
to retrieve user git properties from the local machine.
Install
$ npm install --save shelljs-github-user
Usage
; ;
Yeoman Generator user-interactions Use-case.
Adding gitInfo
to Yeoman Generator
user-interactions example.
const Generator = ;const github_user = ; moduleexports = { superargs opts; } { let self = this; var done = this; ; { selfprompt type: 'input' name: 'name' message: 'Your project name' default: thisappname // Default to current folder name type: 'confirm' name: 'cool' message: 'Would you like to enable the Cool feature?' ; } }
Background
@robwierzbowski offers the following approach in issues/190:
thisgitInfo = name: shelljsoutput email: shelljsoutput github: shelljsoutput;
This approach works for shelljs prior to version "shelljs": "^0.6"
. shelljs-github-user
intends to provide a solution for "shelljs": "^0.7.6"
.
Thanks
shelljs-github-user
is created using nod.
License
MIT © saun4app