Skip to content

Commit d13045d

Browse files
committed
Init
1 parent 728b529 commit d13045d

File tree

2 files changed

+52
-39
lines changed

2 files changed

+52
-39
lines changed

.vscode/launch.json

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
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-
"type": "lldb",
9-
"request": "launch",
10-
"name": "Debug config",
11-
"program": "${workspaceFolder}/config/target/debug/config",
12-
"args": [
13-
"list",
14-
"r*"
15-
],
16-
"cwd": "${workspaceFolder}"
17-
},
18-
{
19-
"name": "(macOS) Attach",
20-
"type": "lldb",
21-
"request": "attach",
22-
"pid": "${command:pickMyProcess}",
23-
},
24-
{
25-
"name": "(Windows) Attach",
26-
"type": "cppvsdbg",
27-
"request": "attach",
28-
"processId": "${command:pickProcess}",
29-
},
30-
{
31-
"name": "Debug sshdconfig",
32-
"type": "cppvsdbg",
33-
"request": "launch",
34-
"program": "${workspaceFolder}/sshdconfig/target/debug/sshdconfig.exe",
35-
"args": ["get"],
36-
"cwd": "${workspaceFolder}"
37-
}
38-
]
39-
}
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+
// "type": "lldb",
9+
// "request": "launch",
10+
// "name": "Debug config",
11+
// "program": "${workspaceFolder}/config/target/debug/config",
12+
// "args": [
13+
// "list",
14+
// "r*"
15+
// ],
16+
// "cwd": "${workspaceFolder}"
17+
// },
18+
// {
19+
// "name": "(macOS) Attach",
20+
// "type": "lldb",
21+
// "request": "attach",
22+
// "pid": "${command:pickMyProcess}",
23+
// },
24+
// {
25+
// "name": "(Windows) Attach",
26+
// "type": "cppvsdbg",
27+
// "request": "attach",
28+
// "processId": "${command:pickProcess}",
29+
// },
30+
// {
31+
// "name": "Debug sshdconfig",
32+
// "type": "cppvsdbg",
33+
// "request": "launch",
34+
// "program": "${workspaceFolder}/sshdconfig/target/debug/sshdconfig.exe",
35+
// "args": ["get"],
36+
// "cwd": "${workspaceFolder}"
37+
// }
38+
// ]
39+
// }
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
$psPaths = $env:PSModulePath -split [System.IO.Path]::PathSeparator | Where-Object { $_ -notmatch 'WindowsPowerShell' }
2+
$manifests = [System.Collections.Generic.List[hashtable]]::new()
3+
4+
$psPaths | ForEach-Object -Parallel {
5+
$queue = $using:manifests
6+
$files = Get-ChildItem -Path $_ -Recurse -File -Include '*.dsc.resource.json', '*.dsc.resource.yaml', '*.dsc.resource.yml' -ErrorAction Ignore
7+
foreach ($file in $files) {
8+
$m = @{ manifestPath = $file.FullName }
9+
$queue.Add($m)
10+
}
11+
} -ThrottleLimit 10
12+
13+
$manifests | ConvertTo-Json -Compress

0 commit comments

Comments
 (0)