Skip to content

Commit

Permalink
changed flag value
Browse files Browse the repository at this point in the history
  • Loading branch information
brent-statsig committed Mar 6, 2023
1 parent ad84893 commit c38f58a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ const build = async (task: Kustomization, option: KustomizeBuildOption): Promise

let args
if (option.writeIndividualFiles) {
args = ['build', task.kustomizationDir, '-o', task.outputDir, '--load_restrictor', option.loadRestrictor]
args = ['build', task.kustomizationDir, '-o', task.outputDir, '--load-restrictor', option.loadRestrictor]
} else {
args = [
'build',
task.kustomizationDir,
'-o',
path.join(task.outputDir, 'generated.yaml'),
'--load_restrictor',
'--load-restrictor',
option.loadRestrictor,
]
}
Expand Down
10 changes: 5 additions & 5 deletions tests/build.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test('build a directory', async () => {
'/fixtures/development',
'-o',
'/output/development/generated.yaml',
'--load_restrictor',
'--load-restrictor',
'LoadRestrictionsRootOnly',
])
})
Expand Down Expand Up @@ -88,7 +88,7 @@ test('build a directory to individual files', async () => {
'/fixtures/development',
'-o',
'/output/development',
'--load_restrictor',
'--load-restrictor',
'LoadRestrictionsRootOnly',
])
})
Expand Down Expand Up @@ -156,7 +156,7 @@ test.each`
`/input/fixture${i}`,
'-o',
`/output/fixture${i}/generated.yaml`,
'--load_restrictor',
'--load-restrictor',
'LoadRestrictionsRootOnly',
])
}
Expand Down Expand Up @@ -204,7 +204,7 @@ test.each`
`/input/fixture${i}`,
'-o',
`/output/fixture${i}/generated.yaml`,
'--load_restrictor',
'--load-restrictor',
'LoadRestrictionsRootOnly',
])
}
Expand Down Expand Up @@ -237,7 +237,7 @@ test('build correctly passes the load restrictor argument', async () => {
'/fixtures/development',
'-o',
'/output/development/generated.yaml',
'--load_restrictor',
'--load-restrictor',
'LoadRestrictionsNone',
])
})

0 comments on commit c38f58a

Please sign in to comment.