rakutentech / docpub

DocPub is a command line utility for converting a folder structure of markdown files to HTML and uploading the result to Zendesk.
MIT License
12 stars 16 forks source link

Add command line arguments to specify configuration #21

Closed elliatab closed 7 years ago

elliatab commented 7 years ago

Currently DocPub is being configured with environment variables. Need to replace it with convenient command line arguments. Command line arguments should override environment variables and configuration file.

Minimum required arguments (if one is specified, the two others must be specified): username: string, name of ZenDesk user from whose name docs would be published apiToken: string, ZenDesk API token of the user url: string, zendesk root URL

corycaywood commented 7 years ago

For the CLI arguments, an additional option can be added to use password instead of apiToken.

This will allow users who have the correct permissions to upload without needing to generate an API token.

ADHER commented 7 years ago

Note : The "light agents" can create and publish documents in Zendesk. But they don't have access to tokens. Therefore CLI arguments are an excellent feature.

SwinX commented 7 years ago

Resolved in #30