Skip to content

Conversation

@feedmeapples
Copy link
Contributor

@feedmeapples feedmeapples commented Jun 11, 2020

What changed?
Added util to map user CLI input to concrete enums. Replaced integer options to actual enum names.

Why?
In CLI, users can now type human friendly options instead of obscure integers. Example:
before:
-- workflowidreusepolicy 1
after:
--workflowidreusepolicy AllowDuplicateFailedOnly (case-insensitive)
If typed incorrectly, CLI will print out possible candidates.

How did you test it?
Ran tests and commands.

Potential risks
Low risk. Main inconvenience for some users will be having to re-learn the usage of affected CLI options.

@feedmeapples feedmeapples marked this pull request as draft June 11, 2020 23:03
@feedmeapples feedmeapples changed the title No ints Replace CLI options to accept enum names instead of integer values Jun 11, 2020
@feedmeapples feedmeapples marked this pull request as ready for review June 15, 2020 14:39
@feedmeapples feedmeapples requested review from alexshtin and shawnhathaway and removed request for alexshtin June 15, 2020 17:07
@feedmeapples feedmeapples changed the title Replace CLI options to accept enum names instead of integer values Replace CLI options to accept enum names instead of integers Jun 15, 2020
@feedmeapples feedmeapples requested a review from alexshtin June 15, 2020 19:41
Copy link
Contributor

@alexshtin alexshtin left a comment

Choose a reason for hiding this comment

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

Please address comments and merge.

@feedmeapples feedmeapples merged commit 927f01c into temporalio:master Jun 22, 2020
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.

2 participants