Skip to content
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: more flag conflicts #861

Merged
merged 5 commits into from
Jun 6, 2023
Merged

fix: more flag conflicts #861

merged 5 commits into from
Jun 6, 2023

Conversation

svc-cli-bot
Copy link
Contributor

@svc-cli-bot svc-cli-bot commented Jun 4, 2023

this was originally a dev scripts automated PR. It caught several errors that needed to be fixed (flags, short chars). See comments.

created via github action [skip-validate-pr]

@@ -65,11 +66,6 @@ export class Retrieve extends SourceCommand {
summary: messages.getMessage('flags.retrievetargetdir.summary'),
exclusive: ['packagenames', 'sourcepath'],
}),
apiversion: Flags.string({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

api-version was on the command, but another api-version was the one actually being used in the code below. I think this was just to get a char alias the hard way, but that meant api-version was being ignored.

@mshanemc mshanemc changed the title refactor: devScripts update fix: more flag conflicts Jun 6, 2023
public static readonly state = 'deprecated';
public static readonly deprecationOptions = {
to: replacement,
message: messages.getMessage('deprecation', [replacement]),
};
public static readonly flags = {
'api-version': orgApiVersionFlagWithDeprecations,
// I have no idea why 'a' isn't matching the type AlphabetLowercase automatically
'api-version': { ...orgApiVersionFlagWithDeprecations, char: 'a' as AlphabetLowercase },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

@mshanemc mshanemc merged commit 81bb1dc into main Jun 6, 2023
@mshanemc mshanemc deleted the devScripts2023-06-04 branch June 6, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants