Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 5a2b6c7

Browse files
committed
fix: fly secrets set <key> --from-file <path> broken
1 parent 2f025d0 commit 5a2b6c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/cmd/secrets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { processResponse } from "../utils/cli"
55
import { Command } from "commandpost"
66

77
export interface SecretSetOptions extends CommonOptions {
8-
filename?: string[]
8+
fromFile?: string[]
99
}
1010
export interface SecretSetArgs {
1111
key: string
@@ -24,7 +24,7 @@ const secretsSet = secrets
2424
try {
2525
const appName = getAppName(this)
2626

27-
const value = opts.filename ? fs.readFileSync(opts.filename[0]).toString() : args.value && args.value
27+
const value = opts.fromFile ? fs.readFileSync(opts.fromFile[0]).toString() : args.value && args.value
2828

2929
if (!value) {
3030
throw new Error("Either a value or --from-file needs to be provided.")

0 commit comments

Comments
 (0)