Skip to content

Commit 8c0e74e

Browse files
fix(flags): no dependsOn boolean flags (#1145)
* fix(flags): no `dependsOn` boolean flags * chore: remove stray comment, unneeded eslint * chore: remove comment [skip ci] --------- Co-authored-by: mshanemc <[email protected]>
1 parent 6ebde15 commit 8c0e74e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/commands/org/list.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ export class OrgListCommand extends SfCommand<OrgListResult> {
4848
'no-prompt': Flags.boolean({
4949
char: 'p',
5050
summary: messages.getMessage('flags.no-prompt.summary'),
51-
dependsOn: ['clean'],
51+
relationships: [
52+
{
53+
type: 'some',
54+
flags: [{ name: 'clean', when: async (flags): Promise<boolean> => Promise.resolve(flags['clean'] === true) }],
55+
},
56+
],
5257
aliases: ['noprompt'],
5358
deprecateAliases: true,
5459
}),

0 commit comments

Comments
 (0)