Skip to content

Commit d145985

Browse files
authored
Merge pull request #134 from Lightning-Flow-Scanner/feat/flow-fix-cmd
feat: add flow:fix command
2 parents ae5b48d + 56cb249 commit d145985

File tree

12 files changed

+1896
-1321
lines changed

12 files changed

+1896
-1321
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ node_modules
1212
coverage/**
1313
.yarn/install-state.gz
1414
oclif.manifest.json
15+
*.log

.vscode/launch.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "Launch via NPM",
9+
"request": "launch",
10+
"runtimeArgs": [
11+
"run",
12+
"test:unit"
13+
],
14+
"runtimeExecutable": "npm",
15+
"skipFiles": [
16+
"<node_internals>/**"
17+
],
18+
"type": "node"
19+
},
720
{
821
"type": "node",
922
"request": "attach",
@@ -28,7 +41,7 @@
2841
"sourceMaps": true,
2942
"smartStep": true,
3043
"internalConsoleOptions": "openOnSessionStart",
31-
"preLaunchTask": "Compile"
44+
"preLaunchTask": "npm: pretest:unit"
3245
},
3346
{
3447
"type": "node",
@@ -43,7 +56,7 @@
4356
"sourceMaps": true,
4457
"smartStep": true,
4558
"internalConsoleOptions": "openOnSessionStart",
46-
"preLaunchTask": "Compile"
59+
"preLaunchTask": "npm: pretest:unit"
4760
}
4861
]
4962
}

messages/fix-command.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"commandDescription":"Fix common problems using lfs core engine. Rule definitions that specifies autoFixable can be executed and fixes may be applied automatically",
3+
"flagsDirsDescription":"Specify one or more Directorie(s) to find flows and fix",
4+
"flagsRulesDescription": "Specify one or more Rule Id(s) to run",
5+
"flagsFilesDescription": "Specify one or more flow File(s) to run",
6+
"errorMutuallyExclusiveRequired": "Specify a directory or a file but not both"
7+
}

0 commit comments

Comments
 (0)