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

refactor: make all run options have shorthand vars #441

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DataDavD
Copy link
Contributor

@DataDavD DataDavD commented May 7, 2024

Refactor: Simple nitpick refactor to have all run option flags have shorthand vars.

Description

I was looking at my old PR that added hashes as run options flags and realized it and others did not have shorthand vars like the majority of the run options flags. So, I threw this nit PR up just in case y'all believe its best to align and have all run options flags have shorthand vars.

Feel free to close PR if you don't agree.

Copy link

netlify bot commented May 7, 2024

Deploy Preview for witness-project canceled.

Name Link
🔨 Latest commit 5e96483
🔍 Latest deploy log https://app.netlify.com/sites/witness-project/deploys/663987482dae630008519cad

Simple nitpick refactor to have all run option flags have shorthand
vars.
@DataDavD DataDavD force-pushed the ddansby/refactor/NOISSUE/make-run-options-all-be-TypeVarP-flags branch from a23868a to 5e96483 Compare May 7, 2024 01:43
@DataDavD
Copy link
Contributor Author

DataDavD commented May 7, 2024

fyi forced pushed the rebase converting ts var to u (forgot to change that before pushing original 😅 ), so docgen step would need to be rerun.

cmd.Flags().BoolVar(&ro.Tracing, "trace", false, "Enable tracing for the command")
cmd.Flags().StringSliceVar(&ro.TimestampServers, "timestamp-servers", []string{}, "Timestamp Authority Servers to use when signing envelope")
cmd.Flags().BoolVarP(&ro.Tracing, "trace", "t", false, "Enable tracing for the command")
cmd.Flags().StringSliceVarP(&ro.TimestampServers, "timestamp-servers", "u", []string{}, "Timestamp Authority Servers to use when signing envelope")
Copy link
Member

Choose a reason for hiding this comment

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

I'm not a huge fan with u as the short-hand for TSA but, t is the only thing that makes sense for tracing... 😅. @ChaosInTheCRD or @mikhailswift either of you have a good suggestion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Completely agree @jkjell. I wasn't sure what else to use tbh, because as you noted t was already used aptly for tracing, as is s for StepName.

Maybe a for Authority?

Let me know what y'all think. I can also understand if y'all believe some of these actually should not have single shorthand letter.

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

2 participants