-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove -o conflict, add short char UTs, add short chars to NUTs #821
Conversation
summary: messages.getMessage('flags.targetusername.summary'), | ||
parse: async (input: string | undefined) => resolveUsername(input), | ||
default: async () => resolveUsername(), | ||
defaultHelp: async () => resolveUsername(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct for defaultHelp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is similar to what we did in plugin-org
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This form can leak customer data into the manifest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -75,6 +80,7 @@ export class Deploy extends DeployCommand { | |||
summary: messages.getMessage('flags.runTests.summary'), | |||
}), | |||
ignoreerrors: Flags.boolean({ | |||
// break this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this comment mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover - will remove
summary: messages.getMessage('flags.targetusername.summary'), | ||
parse: async (input: string | undefined) => resolveUsername(input), | ||
default: async () => resolveUsername(), | ||
defaultHelp: async () => resolveUsername(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This form can leak customer data into the manifest.
@@ -259,3 +271,26 @@ export const getCoverageFormattersOptions = (formatters: string[] = []): Coverag | |||
reportOptions, | |||
}; | |||
}; | |||
|
|||
export const targetUsernameFlag = Flags.string({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having target-org with short char other than 'o' break sf guidelines. I ran into short char collision in plugin-user and to avoid the collision we ended up retaining the old commands that used the -o
and created new ones that allows style adherence.
What does this PR do?
removes
-o
char duplication onsource/mdapi:deploy
adds NUTs that uses short options
adds UTs that use short options
What issues does this PR fix or reference?
@W-13056553@
forcedotcom/cli#2080