Describe the bug
When Passing passphrase to import-keys only the first
word is taken. This also happens with export-keys
passphrase.
To Reproduce
Steps to reproduce the behavior:
panctl
import-keys username /tmp/path-to-key a lengthy password
Error: unrecognized arguments: lengthy password' (see help)
Expected behavior
The whole password should be considered.
It doesn't work with quotes too.
Screenshots
Desktop (please complete the following information):
OS: GNU/Linux 5.18.9_1
Browser: N/A
Version: panctl 0.10.4
Smartphone (please complete the following information):
Device: N/A
OS: N/A
Browser N/A
Version N/A
Additional context
I suspect this issue is caused by result.split() before passing the line to parser.
I was thinking maybe we could handle quoted input like shell
does and perform split based on that rather than just
spaces. I'm willing to perform these changes, but wanted
to get a go signal before taking up this task.
Describe the bug When Passing passphrase to import-keys only the first word is taken. This also happens with export-keys passphrase.
To Reproduce Steps to reproduce the behavior:
import-keys username /tmp/path-to-key a lengthy password
Expected behavior The whole password should be considered. It doesn't work with quotes too.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context I suspect this issue is caused by result.split() before passing the line to parser. I was thinking maybe we could handle quoted input like shell does and perform split based on that rather than just spaces. I'm willing to perform these changes, but wanted to get a go signal before taking up this task.