Skip to content

Conversation

@yuandrew
Copy link
Contributor

What was changed

Standardized CLI StringEnum arguments to follow kebob-case

Also addressed #677 (comment) regarding "pretty" as a legacy alias for "text"

Why?

Should standardize our format across the CLI, and kebob-case seems to be somewhat common, like AWS CLI and others

Checklist

  1. Closes [Feature Request] Standardize Command Option string-enum value format #678

  2. How was this tested:
    Added tests

  3. Any docs updates needed?

Probably, still a TODO I need to complete

@yuandrew yuandrew requested review from dnr and josh-berry November 13, 2024 23:00
Comment on lines -1074 to +1083
- Text
- Keyword
- Int
- Double
- Bool
- Datetime
- text
- keyword
- int
- double
- bool
- datetime
- keyword-list
Copy link
Member

@cretz cretz Nov 14, 2024

Choose a reason for hiding this comment

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

These values represent actual, documented constants at https://docs.temporal.io/visibility#supported-types. Not sure the CLI's desire for enum consistency should override Temporal's desire for consistency for all uses of these constants in all environments. But not a super strong opinion. Same issue (but less so) with other enumerates compared to if they used the API/SDK directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gotcha, yeah while going through this exercise I was wondering if there were certain constants that were beyond the CLI and take precedence over this idea for consistency

Copy link
Member

Choose a reason for hiding this comment

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

I do not have a strong opinion, it is just worth noting for this enumerate specifically we document certain string terms globally

@yuandrew yuandrew closed this Nov 19, 2024
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.

[Feature Request] Standardize Command Option string-enum value format

2 participants