Skip to content

Commit

Permalink
fix: trim space after user input registry and proxy.
Browse files Browse the repository at this point in the history
close #6
  • Loading branch information
cpselvis committed Nov 25, 2017
1 parent 1dc4131 commit cb25ea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/core/initClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ class Client {
name: 'proxy',
message: '请输入npm的proxy(默认为空):'
}]).then((answer) => {
// Handle user input, trim space
for (let prop in answer) {
answer[prop] = answer[prop].trim();
}
// Save user config to local file system
utils.safeDump(answer, rcPath);
log.debug('.feflow/.feflowrc.yml 配置文件已经创建');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "feflow-cli",
"version": "0.11.2",
"version": "0.11.3",
"description": "A command line tool aims to improve front-end engineer workflow.",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit cb25ea6

Please sign in to comment.