node-poeditor
Advanced tools
Comparing version
{ | ||
"name": "node-poeditor", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A node module to send translations to the po editor api", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -23,8 +23,41 @@ # node-poeditor | ||
- --context: Defines the context of the module. `[ 'contributors', 'languages', 'projects', 'terms' ]` | ||
``` | ||
Optional arguments: | ||
-h, --help Show this help message and exit. | ||
-v, --version Show program's version number and exit. | ||
-t TOKEN, --token TOKEN | ||
Set the token to access the PO Editor API. You can | ||
define it in your account-settings of PO Editor | ||
-c CONTEXT, --context CONTEXT | ||
Set the context where you like to access. Available | ||
contexts are: contributors, languages, projects and | ||
terms | ||
-m METHOD, --method METHOD | ||
Set the method where you like to access by the | ||
defined context. See API Specs: https://github. | ||
com/mwiesmueller/node-poeditor | ||
-id PROJECTID, --projectid PROJECTID | ||
Define a projectid when its present in the context | ||
-d DESCRIPTION, --description DESCRIPTION | ||
Set a description when its present in the context. | ||
-n NAME, --name NAME Set a name when its present in the context. | ||
-o OBJECT, --object OBJECT | ||
Set a object when its present in the context. | ||
Attention: Set the Object as String! | ||
-out OUTFILE, --outFile OUTFILE | ||
Define the file and path where the result will be | ||
write | ||
-daf DATAFILE, --dataFile DATAFILE | ||
Define a JSON Data file for data. This argument will | ||
disable the --data argument! | ||
-da DATA, --data DATA | ||
Set a data object when its present in the object! | ||
-l LANG, --lang LANG Set a languagecode when its present in the context | ||
-e EMAIL, --email EMAIL | ||
Set a email address (Only for contributors method) | ||
-a ADMIN, --admin ADMIN | ||
Set it "1" when you like to set a admin. (Only for | ||
contributors method) | ||
- --method: Defines the method in the context. See the API description. | ||
- --id: Defines the id of the project | ||
- --token: Defines the token to access the api. | ||
- --file: Defines the outPath for the file. Is empty the module will display the result in the console at once. | ||
``` | ||
@@ -31,0 +64,0 @@ ### Requirements |
108060
1.48%877
3.91%