| .. | ||
| .vscode | ||
| commands | ||
| lib | ||
| src | ||
| tests | ||
| .gitignore | ||
| .npmignore | ||
| constants.d.ts | ||
| constants.js | ||
| index.d.ts | ||
| index.js | ||
| LICENSE | ||
| main.d.ts | ||
| main.js | ||
| package-lock.json | ||
| package.json | ||
| profile.d.ts | ||
| profile.js | ||
| README.md | ||
| tsconfig.json | ||
| types.d.ts | ||
| types.js | ||
OSR CLI Commons
Package verbs (todos)
Each package should expose information about itself, eg:
- info (package introspection)
- register context menu
- help
- help-json
- commands
- commands-json
For conversion related utility:
- provides (list of available conversions)
- provides-json
Configuration example
{
"deepl": {
"auth_key": "",
"free_api": false
},
"cscart": {
"apiKey": "",
"apiUrl": "https://shop.osr-plastic.org/api/",
"username": "",
"userToken": "none"
},
"discourse": {
"host": "https://forum.osr-plastic.org",
"key": "",
"username": "jerom",
"rateLimitConcurrency": 1
},
"instagram": {
"user": "cgoflyn@gmail.com",
"token": ""
},
"urls":{
"shop":"https://shop.osr-plastic.org/",
"forum":"https://forum.osr-plastic.org/",
"library":"https://kb.osr-plastic.org/",
"git":"https://git.osr-plastic.org/",
"assets":"https://assets.osr-plastic.org/"
}
}
References
Todos
- CLI:Each
- --list=Glob | String | Datasource
- Migrate FS Extras : npm | Opts | Validate