You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 13, 2020. It is now read-only.
[REFACTOR] commands/hld/init.ts and add tests (#197)
* replace any with interface
* correct the type definition for IVariableGroupDataVariable[]
* [REFACTOR] making code compact
* add test to create-variable-group command
* breaking larger function in scaffold class into smaller one, so we can add tests
* simplier commander interface
* using type guard in hasValue function
* incorporate Evan's feedback
* fix jsdoc
* fixed the problem where definition.yaml file is not created
* [REFACTOR] commands/hld/init.ts and add tests
1. move the command decoration out to a JSON file
2. standardized on command decorator function name, initCommandDecorator -> commandDecorator
3. added support for having default values in command builder
4. added tests to boost the coverage from 59% to 89%
5. create helper functions in tests so test code is more manage-able
* modified code to make sure that log is flushed before the command exit
* adding missing Promise<void> return type
Co-authored-by: Yvonne Radsmikham <yvonne.radsmikham@gmail.com>
"description": "Initialize High Level Definition repository. Add manifest-generation.yaml file to working directory/repository if it does not already exist.",
5
+
"options": [
6
+
{
7
+
"arg": "--git-push",
8
+
"description": "SPK CLI will try to commit and push these changes to a new origin/branch.",
0 commit comments