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
Copy file name to clipboardExpand all lines: README.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,10 +62,48 @@ There is also option to run Docker based tests. You need to configure `environme
62
62
63
63
Exchange online tests will be skipped if the connection is not available.
64
64
65
+
### Empty Argument Values Support
66
+
67
+
As of version 1.1.5, the module now supports passing empty string values to PowerShell command arguments when explicitly configured. This is useful for optional parameters that need to be passed as empty values rather than omitted entirely.
68
+
69
+
To enable empty value support for a command argument, set the `empty` property to `true` in the argument configuration:
70
+
71
+
```javascript
72
+
constcommandRegistry= {
73
+
'myCommand': {
74
+
command:"Get-Content {{{arguments}}}",
75
+
arguments: {
76
+
'Path': {},
77
+
'Filter': {
78
+
empty:true, // Allow empty string values
79
+
},
80
+
},
81
+
return: {
82
+
type:"text",
83
+
}
84
+
}
85
+
};
86
+
```
87
+
88
+
When `empty: true` is set, the argument will accept empty string values and include them in the generated PowerShell command:
89
+
90
+
```javascript
91
+
// This will generate: Get-Content -Path './test.txt' -Filter ''
92
+
awaitpsCommandService.execute("myCommand", {
93
+
Path:"./test.txt",
94
+
Filter:""// Empty string value is now allowed
95
+
});
96
+
```
97
+
98
+
65
99
66
100
### <aid="history"></a>History
67
101
68
102
```
103
+
v1.1.5 - 2025-09-19
104
+
- Added support for empty argument values in commands via 'empty' property
105
+
- Fixed argument value bleed into the next empty argument
106
+
69
107
v1.1.4 - 2024-11-22
70
108
- Extended testing and fixed escaping reserved variables and special characters in commands
71
109
@@ -75,6 +113,7 @@ v1.1.3 - 2024-11-14
75
113
v1.1.2 - 2022-07-06
76
114
- Added support for usage of reserved powershell variables in commands [$null, $true, $false]
77
115
116
+
78
117
v1.1.1 - 2020-12-07
79
118
- Fixed bug import of custom commands if provided for certificate based auth
0 commit comments