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

Create spec for barnard59 #2217

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Create spec for barnard59 #2217

wants to merge 2 commits into from

Conversation

tpluscode
Copy link

@withfig-bot
Copy link
Collaborator

withfig-bot commented Dec 28, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@withfig-bot
Copy link
Collaborator

Hello @tpluscode,
thank you very much for creating a Pull Request!
Here is a small checklist to get this PR merged as quickly as possible:

  • Do all subcommands / options which take arguments include the args property (args: {})?
  • Are all options modular? E.g. -a -u -x instead of -aux
  • Have all other checks passed?

Please add a 👍 as a reaction to this comment to show that you read this.

@tpluscode
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

@tpluscode
Copy link
Author

recheck

withfig-bot added a commit that referenced this pull request Dec 28, 2023
Copy link
Member

@grant0417 grant0417 left a comment

Choose a reason for hiding this comment

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

Looks good besides a lot of instances of default: "[object Map]"

{
name: ["--variable"],
description: "variable key value pairs",
args: { name: "name=value", default: "[object Map]" },
Copy link
Member

Choose a reason for hiding this comment

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

This is likely a wrong default.

{
name: ["--variable"],
description: "variable key value pairs",
args: { name: "name=value", default: "[object Map]" },
Copy link
Member

Choose a reason for hiding this comment

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

Same here

{
name: ["--variable"],
description: "variable key value pairs",
args: { name: "name=value", default: "[object Map]" },
Copy link
Member

Choose a reason for hiding this comment

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

Same here

@tpluscode
Copy link
Author

tpluscode commented Jan 20, 2024

Thank you for the review @grant0417 . As you can see, this was generated...

About the bogus defaults. We have options with custom transforms which build a Map object. The default is an empty map, hence the JavaScript's default string representation that object. I would not like to alter the code to account for fig's autocomplete as it requires additional guards in multiple places to handle a possible undefined value for that option.

What about the linting problems? I can fix some casing but it also complains about display help for command which is generated by commander itself. And I don't know what to do about these which say If X is a single value it should not be enclosed in square brackets. I think that needs fixing in @fig/complete-commander

@withfig-bot
Copy link
Collaborator

Overview

src/barnard59.ts:

Info:

URLs:

  • https://cube.link/latest/shape/standalone-constraint-constraint

@tpluscode
Copy link
Author

ping @grant0417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants