0c12189d85
Show help if no argument is provided In case someone calls `xmppc` assume that he doesn't know how to use it. Which means he might even not be aware of `-h`. So let's print the help in case no argument is provided instead of connecting, then discoverin that no mode is selected and disconnecting again. Fix segfault when not roster subcommand is provided _roster_parse_command() segfaults since it assumes there is an argv[0]. Let's test the number of arguments. Since we are already connected xmpp_connect_client() will wait for a disconnect. So I introduce a teardown function that is called in both the error case and the succesful case. Now _roster_send_query() doesn't disconnect anymore. Set to development by default Only set to release when a new release is tagged. Like this not every developer needs to change the code. And it's git aka development anyways. Don't mix german and english Co-authored-by: Michael Vetter <jubalh@iodoru.org> Reviewed-on: https://codeberg.org/Anoxinon_e.V./xmppc/pulls/18 |
||
---|---|---|
doc | ||
src | ||
.gitignore | ||
bootstrap.sh | ||
changelog | ||
configure.ac | ||
LICENSE | ||
Makefile.am | ||
README.md |
xmppc
xmppc - command line interface (CLI) XMPP Client.
xmppc is a XMPP command line interface client. It's written in C and is using the xmpp library libstrophe.
Dependencies
- libc6-dev (2.28-10)
- libglib2.0-dev (2.58.3)
- libstrophe-dev (0.9.2-2)
- libgpgme-dev (1.12.0)
Build
The project is using GNU Automake.
aptitude install libstrophe-dev libc6-dev libglib2.0-dev libgpgme-dev
./bootstrap.sh
./configure
make
Config file
Config file: ~/.config/xmppc.conf
.
The [default]
will be used, when the user doesn't provider an account and
doesn't provider a jid.
[default]
jid=user@domain.tld
pwd=YourSecret
[account1]
jid=account1@domain.tld
pwd=YourSecret
Usage
xmppc --jid user@domain.tld --pwd "password" --mode roster list
xmppc -j user@domain.tld -p "password" -m roster list
xmppc -a alice -m mam list bob@domain.tld
xmppc -m bookmark list
xmppc -h
More command and information see: Wiki