Skip to content

Conversation

@tengqm
Copy link
Contributor

@tengqm tengqm commented Feb 23, 2021

The current generator exposes GoLang specific data types for command line arguments, e.g. stringSlice, stringArray, mapStringString. These type name come from the pflags package and they fail to accurately document the actual type of arguments for users to specify from command line.

This PR fixes this problem by replacing these data type names with a descriptive text where appropriate so that users have a better idea what are expected by each flag.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 23, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tengqm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 23, 2021
@kbhawkey
Copy link
Contributor

kbhawkey commented Mar 7, 2021

Hi @tengqm .
I read over the changes and looked at the CI build. There is new build output?
Is this correct?

@tengqm
Copy link
Contributor Author

tengqm commented Mar 8, 2021

Yes. This PR changes the data type presentation so that readers will see <comma-separated 'key=True|False' pairs> instead of mapStringBool.

name = "&lt;a string in the form 'file:N'&gt;"
}

fmt.Printf("type name = %s\n", name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh ... no. Will remove.

The current generator exposes GoLang specific data types for command
line arguments, e.g. `stringSlice`, `stringArray`, `mapStringString`.
These type name come from the pflags package and they fail to accurately
document the actual type of arguments for users to specify from command
line.

This PR fixes this problem by replacing these data type names with a
descriptive text where appropriate so that users have a better idea what
are expected by each flag.
@kbhawkey
Copy link
Contributor

kbhawkey commented Mar 9, 2021

Thanks @tengqm .
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 9, 2021
@k8s-ci-robot k8s-ci-robot merged commit aa44a07 into kubernetes-sigs:master Mar 9, 2021
@tengqm tengqm deleted the tune-gencomp branch March 10, 2021 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants