add parameter and config for address to sendxmpp

This commit is contained in:
Martin/Geno
2019-07-18 01:10:03 +02:00
committed by Mickaël Rémond
parent 3daa5c505c
commit e3e57ac803
2 changed files with 11 additions and 2 deletions
+7 -2
View File
@@ -21,7 +21,8 @@ Examples:
sendxmpp to@chat.sum7.eu "Hello World!"
Flags:
--config string config file (default is ~/.config/fluxxmpp.toml)
--addr string host[:port]
--config string config file (default is ~/.config/fluxxmpp.yml)
-h, --help help for sendxmpp
--jid string using jid (required)
-m, --muc reciever is a muc (join it before sending messages)
@@ -105,6 +106,8 @@ e.g. ~/.config/fluxxmpp.toml
```toml
jid = "bot@example.org"
password = "secret"
addr = "example.com:5222"
```
#### Enviroment variable
@@ -112,6 +115,8 @@ password = "secret"
export FLUXXMPP_JID='bot@example.org';
export FLUXXMPP_PASSWORD='secret';
export FLUXXMPP_ADDR='example.com:5222';
sendxmpp to@example.org "Hello Welt";
```
@@ -120,5 +125,5 @@ Warning: This should not be used in productiv system.
(Every user on the system could read the running processes with parameter - on this way the password)
```bash
sendxmpp to@example.org "Hello Welt" --jid bot@example.org --password secret;
sendxmpp to@example.org "Hello Welt" --jid bot@example.org --password secret --addr example.com:5222;
```