-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Use placeholder as default if field left empty and is required #1642
Conversation
Co-authored-by: mcastorina <[email protected]>
@@ -49,7 +50,7 @@ func GetTrufflehogConfiguration() truffleCmdModel { | |||
Key: "concurrency", | |||
Required: false, | |||
Help: "Number of concurrent workers.", | |||
Placeholder: "1", | |||
Placeholder: strconv.Itoa(runtime.NumCPU()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which was the default concurrency before we added the tui stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updated version. We copied it from here:
Line 47 in ed06217
concurrency = cli.Flag("concurrency", "Number of concurrent workers.").Default(strconv.Itoa(runtime.NumCPU())).Int() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, didn't notice that you were waiting on me
…lesecurity#1642) * Use placeholder as default if field left empty and is required Co-authored-by: mcastorina <[email protected]> * Drop unused func * uncomment azure source * update wording --------- Co-authored-by: mcastorina <[email protected]>
Description:
If nothing's been entered for a required field, populate the value with the placeholder value & bug fixes @mcastorina
Checklist:
make test-community
)?make lint
this requires golangci-lint)?