Merge pull request #875 from morluto/fix/native-plist-selection-failures

fix(native): report why a selected plist cannot be inspected
This commit is contained in:
Kaoru0822
2026-10-06 23:42:14 -07:00
committed by GitHub
3 changed files with 210 additions and 5 deletions
+7 -3
View File
@@ -135,8 +135,10 @@ const registerNativeCommands = (cli: CliInstance, logger: Logger): void => {
options: z.object({
relativePath: z
.string()
.default("Contents/Info.plist")
.describe("Plist path relative to the app root"),
.optional()
.describe(
"Plist path relative to the app root (default: Contents/Info.plist)",
),
}),
alias: { relativePath: "relative-path" },
run: ({ args, options }) =>
@@ -144,7 +146,9 @@ const registerNativeCommands = (cli: CliInstance, logger: Logger): void => {
runProviderAnalysis(
args.path,
"inspect_plist",
{ path: options.relativePath },
options.relativePath === undefined
? {}
: { path: options.relativePath },
logger,
),
),