Compare commits
3 Commits
02ece20af8
...
60ba19b185
Author | SHA1 | Date | |
---|---|---|---|
|
60ba19b185 | ||
153edb10d4 | |||
37df2dcc6d |
@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Added
|
||||
- add basic remote copu
|
||||
|
||||
### Docs
|
||||
- add more thorough example
|
||||
- correct docs
|
||||
|
||||
## [0.0.1] - 2025-01-10
|
||||
|
||||
### Added
|
||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1272,7 +1272,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
|
||||
|
||||
[[package]]
|
||||
name = "voidpin"
|
||||
version = "0.1.0"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
|
14
README.md
14
README.md
@ -7,6 +7,18 @@ Voidpin sends clipboard content to a local service, that then puts content in a
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# Local
|
||||
voidpin copy
|
||||
VOIDPIN_REMOTE=10.0.9.1:19191 voidpin remote copy
|
||||
|
||||
# Remote
|
||||
ip a # 10.0.9.1
|
||||
voidpin listen & # make voidpin listener run in background
|
||||
|
||||
# login to remote
|
||||
ssh remote@remote
|
||||
export VOIDPIN_REMOTE=http://10.0.9.1:7900
|
||||
echo "some content" | voidpin remote copy
|
||||
|
||||
# In a browser for example
|
||||
# Ctrl+v or Command+v
|
||||
```
|
||||
|
@ -29,7 +29,7 @@ struct Command {
|
||||
#[derive(Subcommand)]
|
||||
enum Commands {
|
||||
Listen {
|
||||
#[arg(long, env = "VP_GRPC_HOST", default_value = "0.0.0.0:7900")]
|
||||
#[arg(long, env = "VOIDPIN_GRPC_HOST", default_value = "0.0.0.0:7900")]
|
||||
grpc: SocketAddr,
|
||||
},
|
||||
Copy {},
|
||||
@ -44,7 +44,7 @@ enum RemoteCommands {
|
||||
Copy {
|
||||
#[arg(
|
||||
long = "remote-host",
|
||||
env = "VP_REMOTE_HOST",
|
||||
env = "VOIDPIN_REMOTE",
|
||||
default_value = "http://0.0.0.0:7900"
|
||||
)]
|
||||
remote_host: String,
|
||||
|
Loading…
x
Reference in New Issue
Block a user