Skip to content

Commit

Permalink
feat(help): add config help info
Browse files Browse the repository at this point in the history
  • Loading branch information
cpselvis committed Apr 10, 2020
1 parent b7549da commit b437682
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/feflow-cli/src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ export default class Feflow {
'--save',
'--save-exact',
'--loglevel',
'--allow-root',
'error',
'-g'
];
Expand Down
17 changes: 16 additions & 1 deletion packages/feflow-cli/src/core/native/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,20 @@ module.exports = (ctx: any) => {
default:
return null;
}
});
}, [{
header: `Usage`,
content: [
'fef config list list all configs',
'fef config set <key> <value> set key value',
'fef config get <key> get key value'
]
}, {
header: `Example`,
content: [
'fef config set packageManager npm set package manager',
'fef config set disableCheck true disable check when has new version',
'fef config set autoUpdate true autoupdate when has new version',
'fef config get <key> get key config'
]
}]);
};

0 comments on commit b437682

Please sign in to comment.