Skip to content

Commit 320acc1

Browse files
authored
Add passing additional arguments to helm fetch subcommand (#5)
1 parent dfce91b commit 320acc1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/args/__tests__/parse-helm-fetch-args.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ Deno.test("Should parse helm fetch args", () => {
4040
"--verify",
4141
"--version",
4242
"0.0.1",
43+
"--registry-config",
44+
"registry.json",
45+
"--repository-cache",
46+
"/repository",
47+
"--repository-config",
48+
"repositorites.yaml",
4349
"--deno-log-level",
4450
"debug",
4551
])
@@ -64,5 +70,11 @@ Deno.test("Should parse helm fetch args", () => {
6470
"--verify",
6571
"--version",
6672
"0.0.1",
73+
"--registry-config",
74+
"registry.json",
75+
"--repository-cache",
76+
"/repository",
77+
"--repository-config",
78+
"repositorites.yaml",
6779
])
6880
})

src/args/parse-helm-fetch-args.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ const parser = args
2424
.with(textOption("username"))
2525
.with(BinaryFlag("verify"))
2626
.with(textOption("version"))
27+
.with(textOption("registry-config"))
28+
.with(textOption("repository-cache"))
29+
.with(textOption("repository-config"))
2730

2831
export function parseHelmFetchArgs(args: readonly string[]): readonly string[] {
2932
const res = parser.parse(args)

0 commit comments

Comments
 (0)