Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aerth opened this issue Dec 18, 2015 · 0 comments

Comments

@aerth
Copy link

aerth commented Dec 18, 2015

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 aerth changed the title RFC: Ability to force config enrollment, Shorten CLI flags, and Portable by Default Ability to force config enrollment without error, Shorten CLI flags, and make Portable by Default Dec 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant