xmpp-client icon indicating copy to clipboard operation
xmpp-client copied to clipboard

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

Open aerth opened this issue 10 years ago • 0 comments

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. [email protected], 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

aerth avatar Dec 18 '15 00:12 aerth