@@ -13,12 +13,14 @@ function New-Note{
1313 [Parameter ()][string ] [ValidateSet (" none" , " meetingmini" )] $Template = " none" ,
1414 [Parameter ()][switch ] $NoOpen ,
1515 [Parameter ()][switch ] $AvoidChildFolder ,
16- [Parameter ()][switch ] $Force
16+ [Parameter ()][switch ] $Force ,
17+ [Parameter ()][string ] $RootPath
18+
1719 )
1820
1921 # FILENAME
2022
21- $folder = Get-NoteFolder - Category $Category - Section $Section - Force:$Force
23+ $folder = Get-NoteFolder - RootPath $RootPath - Category $Category - Section $Section - Force:$Force
2224
2325 if (-Not $folder ) {
2426 Write-Error " Failed to create the folder for the note. Try -Force."
@@ -141,12 +143,13 @@ function New-NoteToday{
141143 [Parameter ()][string ] [ValidateSet (" none" , " meetingmini" )] $Template = " none" ,
142144 [Parameter ()][switch ] $NoOpen ,
143145 [Parameter ()][switch ] $AvoidChildFolder ,
144- [Parameter ()][switch ] $Force
146+ [Parameter ()][switch ] $Force ,
147+ [Parameter ()][string ] $RootPath
145148 )
146149
147150 # FILENAME
148151
149- $folder = Get-NoteFolder - Category $Category - Section $Section - Force:$Force
152+ $folder = Get-NoteFolder - RootPath $RootPath - Category $Category - Section $Section - Force:$Force
150153
151154 if (-Not $folder ) {
152155 Write-Error " Failed to create the folder for the note. Try -Force."
@@ -272,7 +275,8 @@ function New-NoteTodayMeeting{
272275 [Parameter (Position = 2 )][string ] $Notes ,
273276 [Parameter (ValueFromPipeline )][string ] $IssueUrl ,
274277 [Parameter ()][switch ] $NoOpen ,
275- [Parameter ()][switch ] $Force
278+ [Parameter ()][switch ] $Force ,
279+ [Parameter ()][string ] $RootPath
276280 )
277281
278282 begin {
@@ -282,7 +286,7 @@ function New-NoteTodayMeeting{
282286
283287 process {
284288
285- $folder = Get-NoteFolder - Category $category - Section $section - Force:$Force
289+ $folder = Get-NoteFolder - RootPath $RootPath - Category $category - Section $section - Force:$Force
286290
287291 if (-not $folder ) {
288292 Write-Error " Client folder for '$section ' does not exist and Force was not specified."
0 commit comments