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
|
### Added
|
||||||
- add basic remote copu
|
- add basic remote copu
|
||||||
|
|
||||||
|
### Docs
|
||||||
|
- add more thorough example
|
||||||
|
- correct docs
|
||||||
|
|
||||||
## [0.0.1] - 2025-01-10
|
## [0.0.1] - 2025-01-10
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1272,7 +1272,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "voidpin"
|
name = "voidpin"
|
||||||
version = "0.1.0"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"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
|
## Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# Local
|
||||||
voidpin copy
|
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)]
|
#[derive(Subcommand)]
|
||||||
enum Commands {
|
enum Commands {
|
||||||
Listen {
|
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,
|
grpc: SocketAddr,
|
||||||
},
|
},
|
||||||
Copy {},
|
Copy {},
|
||||||
@ -44,7 +44,7 @@ enum RemoteCommands {
|
|||||||
Copy {
|
Copy {
|
||||||
#[arg(
|
#[arg(
|
||||||
long = "remote-host",
|
long = "remote-host",
|
||||||
env = "VP_REMOTE_HOST",
|
env = "VOIDPIN_REMOTE",
|
||||||
default_value = "http://0.0.0.0:7900"
|
default_value = "http://0.0.0.0:7900"
|
||||||
)]
|
)]
|
||||||
remote_host: String,
|
remote_host: String,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user