-
Notifications
You must be signed in to change notification settings - Fork 64
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
Stop asking for confirmation when non-interactive modify
#189
Comments
If I understand the code in khard/khard.py line 1790-1803 correctly we reopen the terminal device to read the answer from the user after reading the input. Does it not work for you? |
I don't know how to do that, not even if it is possible. |
For me it works. ~% khard ls -a dropin
Address book: dropin
Index Name Phone E-Mail UID
1 von Bar, Foo t
~% khard modify -a dropin --uid=t < foo
Modification
Name: Foo hans von Bar
Address book: dropin
Miscellaneous
UID: t9bo8ud06exx18qnar01kdkhhvb1mcrel7tl
Do you want to proceed (y/n)? y
Done
~% khard ls -a dropin
Address book: dropin
Index Name Phone E-Mail UID
1 von Bar, Foo hans t After reading the file from stdin the terminal device is opened again and connected to stdin. |
Non the less your feature request is interesting and can be discussed. |
Sorry, I wasn't clear enough. I don't know how to confirm using stdin when calling khard from a program. |
I think you can open a pull request with a new option |
Would it be possible to get rid of the confirmation question when
stdin is used as input for
modify
? When used in a program, it isimpossible to pass both the yaml content and the answer to the
question through stdin.
Expected: no question because I already use stdin to pass the contact,
I can't use it to also answer the question.
The text was updated successfully, but these errors were encountered: