# Comandor
Very Simple Script for Run your command!
A simple tool to simplify some repetitive
tasks such as updating the Linux repository and daily tasks!
## How Install
> pip install comandor
### How Use
- make file .comandor
- setup config like this (json file)
```json
{
"name": "Update Apps!",
"debug": true, // run debug mode ( not necessary )
"logfile": "./logs.log", // where save logs ( not necessary )
"actions": [
{
"action_name": "scoop update pkg",
"path": "C:/",
"commands": [
"scoop update -g *"
],
"timeout": 5000
}
// you can add more action
]
}
```
OR yaml file:
```yaml
name: "test rund command"
debug: true
logfile: "./logs.log"
actions:
- action_name: "test12"
path: "."
commands:
- "cd ."
timeout: 5000
```
- you can see .comandor.example for more example
- and run this command
> comandor
### Command Line Help
```txt
❯ comandor -h
usage: comandor [-h] [-l LOGFILE] [-c CONFIG] [-d] [-sk SKIP]
options:
-h, --help show this help message and exit
-l LOGFILE, --logfile LOGFILE
where save logfile
-c CONFIG, --config CONFIG
where you have config file
-d, --debug run debug mod
-sk SKIP, --skip SKIP
skip with text,check text and if found match skip
```
### How run tests?
> python -m unittest test/test_comandor.py
Raw data
{
"_id": null,
"home_page": "https://github.com/NoobforAl/comandor",
"name": "comandor",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "command line,script",
"author": "NoobforAl",
"author_email": "FarshadSarmali@pm.me",
"download_url": "https://files.pythonhosted.org/packages/3c/b9/4a22a1e2138e051e93bac22fb7a6c49c3492a783b3b1d8a94799462ea8e6/comandor-0.4.1.tar.gz",
"platform": null,
"description": "\n# Comandor\n\nVery Simple Script for Run your command! \nA simple tool to simplify some repetitive\ntasks such as updating the Linux repository and daily tasks!\n\n## How Install\n\n> pip install comandor\n\n### How Use\n\n- make file .comandor \n- setup config like this (json file)\n\n```json\n{\n \"name\": \"Update Apps!\",\n \"debug\": true, // run debug mode ( not necessary )\n \"logfile\": \"./logs.log\", // where save logs ( not necessary )\n \"actions\": [\n {\n \"action_name\": \"scoop update pkg\",\n \"path\": \"C:/\",\n \"commands\": [\n \"scoop update -g *\"\n ],\n \"timeout\": 5000\n }\n // you can add more action\n ]\n}\n``` \n\nOR yaml file:\n\n```yaml\nname: \"test rund command\"\ndebug: true\nlogfile: \"./logs.log\"\nactions:\n - action_name: \"test12\"\n path: \".\"\n commands:\n - \"cd .\"\n timeout: 5000\n\n```\n\n- you can see .comandor.example for more example \n- and run this command\n\n> comandor\n\n### Command Line Help\n\n```txt\n\u276f comandor -h\nusage: comandor [-h] [-l LOGFILE] [-c CONFIG] [-d] [-sk SKIP]\n\noptions:\n -h, --help show this help message and exit\n -l LOGFILE, --logfile LOGFILE\n where save logfile\n -c CONFIG, --config CONFIG\n where you have config file\n -d, --debug run debug mod\n -sk SKIP, --skip SKIP\n skip with text,check text and if found match skip\n```\n\n### How run tests?\n\n> python -m unittest test/test_comandor.py\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "A Very Simple Script for Run your command!",
"version": "0.4.1",
"project_urls": {
"Homepage": "https://github.com/NoobforAl/comandor"
},
"split_keywords": [
"command line",
"script"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b6c89a9b77522a66bbf27af22fa8e10ae4ef577cc5311b5480550802d4cab24b",
"md5": "81dd01627ba0f27b7640cee91b5d2093",
"sha256": "04c74c03e212157d2cce3d4b0475788b38082ed811a5391ba08a50e8162e0be6"
},
"downloads": -1,
"filename": "comandor-0.4.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "81dd01627ba0f27b7640cee91b5d2093",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6708,
"upload_time": "2023-08-01T09:49:44",
"upload_time_iso_8601": "2023-08-01T09:49:44.250988Z",
"url": "https://files.pythonhosted.org/packages/b6/c8/9a9b77522a66bbf27af22fa8e10ae4ef577cc5311b5480550802d4cab24b/comandor-0.4.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3cb94a22a1e2138e051e93bac22fb7a6c49c3492a783b3b1d8a94799462ea8e6",
"md5": "5a4d19499f71b3d8052272b960ce7ab7",
"sha256": "06ba95fdaa79de37b7e714b4b5ef5c268337f9c25363fa18969e98340f19f76d"
},
"downloads": -1,
"filename": "comandor-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "5a4d19499f71b3d8052272b960ce7ab7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5315,
"upload_time": "2023-08-01T09:49:45",
"upload_time_iso_8601": "2023-08-01T09:49:45.616969Z",
"url": "https://files.pythonhosted.org/packages/3c/b9/4a22a1e2138e051e93bac22fb7a6c49c3492a783b3b1d8a94799462ea8e6/comandor-0.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-01 09:49:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "NoobforAl",
"github_project": "comandor",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "comandor"
}