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

"sfdx commands --json" returns incorrect flag types #279

Closed
mshanemc opened this issue Jan 22, 2020 · 2 comments
Closed

"sfdx commands --json" returns incorrect flag types #279

mshanemc opened this issue Jan 22, 2020 · 2 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@mshanemc
Copy link
Contributor

mshanemc commented Jan 22, 2020

Summary

Flags either say their type is boolean or option, regardless of what type the actually are.

Steps To Reproduce:

  1. sfdx commands --json

Expected result

flag types from https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_customize_parameters_types.htm

example: scrolling down to apex:file:execute

"apexcodefile": {
        "name": "apexcodefile",
        "type": "filepath",
        "char": "f",
        "description": "path to a local file containing Apex code",
        "hidden": false,
        "required": false
      }

Actual result

"apexcodefile": {
        "name": "apexcodefile",
        "type": "option",
        "char": "f",
        "description": "path to a local file containing Apex code",
        "hidden": false,
        "required": false
      }

Additional information

osx/catalina
$ sfdx version
sfdx-cli/7.41.0 darwin-x64 node-v12.14.0
$ sfdx plugins
@mshanemc/sfdx-migration-automatic 0.2.1 (link) /Users/shane.mclaughlin/code/sfdx-migration-automatic
@oclif/plugin-autocomplete 0.1.5
@salesforce/lwc-dev-server 1.0.10
├─ @oclif/plugin-help 2.2.1
└─ @oclif/plugin-update 1.3.9

salesforcedx 48.0.9 (pre-release)
├─ salesforcedx-templates 48.0.7
└─ salesforce-alm 48.0.9

shane-sfdx-plugins 4.14.5 (link) /Users/shane.mclaughlin/code/shane-sfdx-plugins

@clairebianchi
Copy link
Collaborator

@mshanemc thank you for the heads up we will take a look

@iowillhoit
Copy link
Contributor

See oclif/core#717 (comment)

@iowillhoit iowillhoit closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

3 participants