agl / xmpp-client

An XMPP client with OTR support
BSD 3-Clause "New" or "Revised" License
365 stars 71 forks source link

Ability to force config enrollment without error, Shorten CLI flags, and make Portable by Default #107

Open aerth opened 8 years ago

aerth commented 8 years ago

Right now I have to invalidate the json with a # so it jumps to "enrollment mode".. looks like this:

$ ./cli-xmpp -config-file config.json -create

 * (4:18PM) Failed to parse config file: invalid character '#' looking for beginning of object key string
 * (4:18PM) Enrolling new config file

Account (i.e. user@example.com, enter to quit):

I'd like to make a compiled version of this available for download on our XMPP server but the following issues are preventing the release. Although it may be a specific use-case, I am sure it is not unique.

  1. portable by default. does not save to ~/.xmpp-client or /tmp/xmpp-client-debug.log
  2. easy to create/login to one specific server (our server, but that should be able to be modified to fit anybodys needs) for example: just type a nickname and it appends @example.com (or whoever builds the particular binary) This allows AIM functionality, super easy.
  3. once configured properly, "just works". meaning, you run ./xmpp-client and it connects and displays your online buddies.

    About the CLI flags

Would be nice:

./xmmp-client -c config.json -new # this registers new account based on config (if not empty config.json)
./xmpp-client -c config.json # this logs in to existing
./xmpp-client -new # this starts enrollment, asks where to save the about-to-be-created config file