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

Add a basic command line interface to the client #32

Open
wants to merge 1 commit into
base: develop
from

Conversation

Projects
None yet
1 participant
@c-w
Copy link

commented Jan 3, 2017

The CLI supports simple operations like:

./cli.py forms list
./cli.py forms list --author=someone

Configuration values for the client can be specified via command line
arguments or via a per-user configuration file for ease of use.

The CLI does not use argparse, but that is by design so that we can
dynamically lookup which API method to call via the CLI instead of
hard-coding the values. This minimizes the amount of maintenance of the
CLI going forward as we don't have to update it whenever the client gets
changed.

This is a first step towards implementing #18

Add a basic command line interface to the client
The CLI supports simple operations like:

    ./cli.py forms list
    ./cli.py forms list --author=someone

Configuration values for the client can be specified via command line
arguments or via a per-user configuration file for ease of use.

The CLI does not use argparse, but that is by design so that we can
dynamically lookup which API method to call via the CLI instead of
hard-coding the values. This minimizes the amount of maintenance of the
CLI going forward as we don't have to update it whenever the client gets
changed.

This is a first step towards implementing #18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.