1 | {
|
2 | // Use IntelliSense to learn about possible attributes.
|
3 | // Hover to view descriptions of existing attributes.
|
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5 | "version": "0.2.0",
|
6 | "configurations": [
|
7 | {
|
8 | "name": "build",
|
9 | "type": "node",
|
10 | "request": "launch",
|
11 | "args": ["src/index.ts", "build", "srcVal", "dest", "-b"],
|
12 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
13 | "sourceMaps": true,
|
14 | "cwd": "${workspaceRoot}",
|
15 | "protocol": "inspector",
|
16 | },
|
17 | {
|
18 | "name": "camel",
|
19 | "type": "node",
|
20 | "request": "launch",
|
21 | "args": ["src/index.ts", "camelcommand", "srcVal", "dest"],
|
22 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
23 | "sourceMaps": true,
|
24 | "cwd": "${workspaceRoot}",
|
25 | "protocol": "inspector",
|
26 | },
|
27 | {
|
28 | "name": "build default",
|
29 | "type": "node",
|
30 | "request": "launch",
|
31 | "args": ["src/index.ts", "srcVal", "-o", "outputval", "-g"],
|
32 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
33 | "sourceMaps": true,
|
34 | "cwd": "${workspaceRoot}",
|
35 | "protocol": "inspector",
|
36 | },
|
37 | {
|
38 | "name": "build optional passed",
|
39 | "type": "node",
|
40 | "request": "launch",
|
41 | "args": ["src/index.ts", "build", "optional", "srcVal", "destVal", "-o", "outputval", "-g"],
|
42 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
43 | "sourceMaps": true,
|
44 | "cwd": "${workspaceRoot}",
|
45 | "protocol": "inspector",
|
46 | },
|
47 | {
|
48 | "name": "build optional NOT passed",
|
49 | "type": "node",
|
50 | "request": "launch",
|
51 | "args": ["src/index.ts", "build", "optional", "srcVal", "-o", "outputval", "-g"],
|
52 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
53 | "sourceMaps": true,
|
54 | "cwd": "${workspaceRoot}",
|
55 | "protocol": "inspector",
|
56 | },
|
57 |
|
58 | {
|
59 | "name": "build Insufficient Args",
|
60 | "type": "node",
|
61 | "request": "launch",
|
62 | "args": ["src/index.ts", "build", "srcVal", "-o", "outputval", "-g"],
|
63 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
64 | "sourceMaps": true,
|
65 | "cwd": "${workspaceRoot}",
|
66 | "protocol": "inspector",
|
67 | },
|
68 | {
|
69 | "name": "build sub",
|
70 | "type": "node",
|
71 | "request": "launch",
|
72 | "args": ["src/index.ts", "build", "sub", "srcVal", "destVal", "-o", "outputval"],
|
73 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
74 | "sourceMaps": true,
|
75 | "cwd": "${workspaceRoot}",
|
76 | "protocol": "inspector",
|
77 | },
|
78 | {
|
79 | "name": "help (build)",
|
80 | "type": "node",
|
81 | "request": "launch",
|
82 | "args": ["src/index.ts", "build", "-h"],
|
83 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
84 | "sourceMaps": true,
|
85 | "cwd": "${workspaceRoot}",
|
86 | "protocol": "inspector",
|
87 | },
|
88 | {
|
89 | "name": "help (global)",
|
90 | "type": "node",
|
91 | "request": "launch",
|
92 | "args": ["src/index.ts", "-h"],
|
93 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
94 | "sourceMaps": true,
|
95 | "cwd": "${workspaceRoot}",
|
96 | "protocol": "inspector",
|
97 | },
|
98 |
|
99 | {
|
100 | "name": "version",
|
101 | "type": "node",
|
102 | "request": "launch",
|
103 | "args": ["src/index.ts", "build", "-v"],
|
104 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
105 | "sourceMaps": true,
|
106 | "cwd": "${workspaceRoot}",
|
107 | "protocol": "inspector",
|
108 | },
|
109 | {
|
110 | "name": "No Command",
|
111 | "type": "node",
|
112 | "request": "launch",
|
113 | "args": ["src/index.ts",],
|
114 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
115 | "sourceMaps": true,
|
116 | "cwd": "${workspaceRoot}",
|
117 | "protocol": "inspector",
|
118 | },
|
119 | {
|
120 | "name": "Invalid option",
|
121 | "type": "node",
|
122 | "request": "launch",
|
123 | "args": ["src/index.ts", "build", "srcVal", "destVal", "-o", "outputval", "-g", "-x"],
|
124 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
125 | "sourceMaps": true,
|
126 | "cwd": "${workspaceRoot}",
|
127 | "protocol": "inspector",
|
128 | },
|
129 | {
|
130 | "name": "Too many arguments",
|
131 | "type": "node",
|
132 | "request": "launch",
|
133 | "args": ["src/index.ts", "build", "srcVal", "destVal", "extraArg", "-o", "outputval", "-g"],
|
134 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
135 | "sourceMaps": true,
|
136 | "cwd": "${workspaceRoot}",
|
137 | "protocol": "inspector",
|
138 | },
|
139 | {
|
140 | "name": "Variadic",
|
141 | "type": "node",
|
142 | "request": "launch",
|
143 | "args": ["src/index.ts", "variadic", "srcVal", "destVal", "extraArg1", "extraArg2", "-o", "outputval",],
|
144 | "runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
|
145 | "sourceMaps": true,
|
146 | "cwd": "${workspaceRoot}",
|
147 | "protocol": "inspector",
|
148 | },
|
149 |
|
150 | ]
|
151 | }
|