Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Consider adding a --text option to send arbitrary raw strings #19

Open
tom-james-watson opened this issue Jan 10, 2019 · 2 comments
Open
Labels
todo New feature or request

Comments

@tom-james-watson
Copy link
Owner

E.g.

dcp --text SECRET_API_KEY=abcdef
dcp <generated public key>

Received Text:

SECRET_API_KEY=abcdef
@tom-james-watson tom-james-watson added the todo New feature or request label Jan 10, 2019
@Dmole
Copy link

Dmole commented Jan 23, 2019

dcp <(echo SECRET_API_KEY=abcdef)

@pepa65
Copy link

pepa65 commented Apr 19, 2021

What you could do is: when the text given is not a filename, just send it as text. Then you won't need an extra flag (--text). Ease of use is king!
EDIT: I realized that won't work, because it would be indistinguishable from what a receiver would type.
Also realized, you cannot send a file with a name of 64 hexadecimal characters..! That is a corner-case bug...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
todo New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants