{ "info": { "author": "Robert Fuchs", "author_email": "RobertFuchs97@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# COCO\n\nCoco is a tool for collecting commands in an easy and organized way.\n\n

\n \"Usage\n

\n\n\n## Installation\n\nCoco is available in [PyPi](https://pypi.org/project/coco-cli/) and can be installed via pip:\n\n```sh\npip install --user coco-cli\n```\n\n## Features\n\n- Custom prompts :star2:\n- List existing prompts :notebook:\n- Add or remove prompts :cactus:\n- Easy to remember commands like `ls` for listing or `rm` for removing :bulb:\n\n## Usage\n\n```sh\nUsage: coco [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n --help Show this message and exit.\n\nCommands:\n add Add a prompt\n ls List all prompts\n new Generate a default config file\n rm Remove a prompt\n run Run a prompt\n\n```\n\n### Generate config files\n\nTo generate a new config file and simultaneously add the prompt you can simply use the command \n\n```sh\ncoco new [PATH] [NAME]\n```\n\nWhere `[PATH]` specifies the destination of the config file and `[NAME]` the name of the prompt that coco saves.\n\nFor example `coco new ~/.config/coco/maven.json mvn` will generate a file named `maven.json` in `~/.config/coco`, which can be executed with `coco run mvn`.\n\nNote that the name of the config file as well as the file extension do _not_ matter.\nHowever since coco expects valid json it is a nice convention to use the `.json` extension.\n\n### Add prompt\n\nIf you've already created a valid config file with your desired commands you can add it via\n\n```sh\ncoco add [PATH] [NAME]\n```\n\nWhere `[PATH]` specifies the location of the config file and `[NAME]` the name of the prompt that coco saves.\n\nSee [Generate Config File](#generate-config-files) for a more detailed example.\n\n### Run a prompt\n\nIn order to view an added prompt simply enter\n\n```sh\ncoco run [NAME]\n```\n\nIf the prompt requires parameters you can either append them at the end or let coco ask the user for input:\n\n

\n \"Usage\n

\n\n\nAnd a possible config file entry could look like this\n\n```json\n{\n \"prompt\": \"Select command to run:\",\n \"choices\": {\n \"Show package details\": \"pip show {package}\",\n ...\n }\n}\n```\n\n### List available prompts\n\nTo list available prompts use\n\n```sh\ncoco ls\n```\n\n### Remove a prompt\n\nRemoving an existing prompt is as easy as using:\n\n```sh\ncoco rm [NAME]\n```\n\n`[Name]` of course specifies the name of the prompt that you wish to remove.\nTo list the names of all available prompts use `coco ls`.\n\nIf you wish to also delete the associated config file from your system add the `--delete-config` flag:\n\n```sh\ncoco rm --delete-config [NAME]\n```\n\n## Config Files\n\nAn example config file can be viewed [here](https://github.com/Treborium/Coco/blob/master/coco/coco.json)\n\nAs you can probably guess the file needs to be valid json, however the file extension does _not_ matter.\n\nIf you want to specify arguments for your commands you can do so by wrapping them in curly braces:\n\n```json\n{\n \"prompt\": \"Pacman commands:\",\n \"choices\": {\n \"install\": \"sudo pacman -S {package}\"\n }\n}\n```\n\n---\n\n## TODO\n\n- [ ] Support for piped operations\n- [ ] Usage of the same argument in multiple places like `pip search {package} | grep {package}`\n- [ ] Add new command to easily edit the config files\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Treborium/Coco", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "coco-cli", "package_url": "https://pypi.org/project/coco-cli/", "platform": "", "project_url": "https://pypi.org/project/coco-cli/", "project_urls": { "Homepage": "https://github.com/Treborium/Coco" }, "release_url": "https://pypi.org/project/coco-cli/2.3/", "requires_dist": [ "bullet", "click" ], "requires_python": "", "summary": "A CLI tool for managing your CLI tools", "version": "2.3" }, "last_serial": 5511098, "releases": { "2.0": [ { "comment_text": "", "digests": { "md5": "e36d2530c748654124739ea131c04af7", "sha256": "ad2bab2dd3b8795eeca516aedbb948d4aaab726e00c002408254a34bae9e1c0a" }, "downloads": -1, "filename": "coco_cli-2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e36d2530c748654124739ea131c04af7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4561, "upload_time": "2019-04-28T09:22:34", "url": "https://files.pythonhosted.org/packages/bb/eb/4d03c901257d7c5c781f15708fa2c0cbc3b8512cb9c9384baeabae85a9ba/coco_cli-2.0-py3-none-any.whl" } ], "2.1": [ { "comment_text": "", "digests": { "md5": "4278bb8278c4c8b9794e19a755c06d4f", "sha256": "96d7a703f0e1a88611580f4ec588381aeb4e9f007a00575905a12055dd3d2e46" }, "downloads": -1, "filename": "coco_cli-2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4278bb8278c4c8b9794e19a755c06d4f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5169, "upload_time": "2019-04-28T13:27:16", "url": "https://files.pythonhosted.org/packages/08/2a/1d406b8da22258d78d1daafb9aac559fc3bdbf65ed17f27ce6e42a113dac/coco_cli-2.1-py3-none-any.whl" } ], "2.2": [ { "comment_text": "", "digests": { "md5": "f4d364f0fec5efc47c08ada79aaa78d9", "sha256": "85a82fcc08abc4ea8553611e8a84bde00a2f05acc91d8ade3de0691a4e582d5a" }, "downloads": -1, "filename": "coco_cli-2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "f4d364f0fec5efc47c08ada79aaa78d9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6555, "upload_time": "2019-05-05T17:36:38", "url": "https://files.pythonhosted.org/packages/90/7d/6812ab149896fc1b52d1a3bd1a84770e146dedf91ede492fb1a8bcb1eb43/coco_cli-2.2-py3-none-any.whl" } ], "2.3": [ { "comment_text": "", "digests": { "md5": "ba90755152aba5160ece3b95f6eabddc", "sha256": "253620608eda7adb28dae454537f9e1f45210d1c689173d9b3efdc02c9336411" }, "downloads": -1, "filename": "coco_cli-2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "ba90755152aba5160ece3b95f6eabddc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6704, "upload_time": "2019-07-10T09:53:51", "url": "https://files.pythonhosted.org/packages/71/e4/b46eba01086e53cafcf2c9237c586a5ccd56231d96ca2aeac7faaf575b77/coco_cli-2.3-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ba90755152aba5160ece3b95f6eabddc", "sha256": "253620608eda7adb28dae454537f9e1f45210d1c689173d9b3efdc02c9336411" }, "downloads": -1, "filename": "coco_cli-2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "ba90755152aba5160ece3b95f6eabddc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6704, "upload_time": "2019-07-10T09:53:51", "url": "https://files.pythonhosted.org/packages/71/e4/b46eba01086e53cafcf2c9237c586a5ccd56231d96ca2aeac7faaf575b77/coco_cli-2.3-py3-none-any.whl" } ] }