{ "info": { "author": "spikespaz", "author_email": "support@spikespaz.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Software Development :: Version Control :: Git", "Topic :: Utilities" ], "description": "# clone-by-path\nA small CLI tool to infer the clone URL by the current path and arguments.\n\n## Setup\n\nThere are now two versions. One is in Python, one is in D. If you're a static-typed guy, follow the instructions below. But if you have Python, just run `pip install cbp` and continue to the next section, [Usage](#usage).\n\nLinux, place the `cbp` file in `/usr/bin/` and make it executable with `sudo chmod +x /usr/bin/cbp`.\n\nWindows, save `cbp.exe` somewhere and expose its location to your system PATH environment variable.\n\n## Usage\n\nThe best way to understand how this works is to read the source code. It can be a little confusing otherwise.\n\n```\ncbp [args...]\n```\n\nCBP assumes that each repository URL is three parts. The domain, the author, and the repository name.\nIt is also assumed that these are delimited by a forward-slash (`/`). All arguments after the `` position are passed as arguments to the subsequent `git clone` command.\n\nThere are several examples to help you understand how the command works.\nPay attention to the current working directory, the generated clone command, and the directory to clone into.\n\n```\nspikespaz@jacob-linux:~$ cbp github.com/spikespaz/clone-by-path\n> git clone https://github.com/spikespaz/clone-by-path.git github.com/spikespaz/clone-by-path\nCloning into 'github.com/spikespaz/clone-by-path'...\n...\n```\n\n```\nspikespaz@jacob-windows:~/github.com$ cbp spikespaz/clone-by-path\n> git clone https://github.com/spikespaz/clone-by-path.git spikespaz/clone-by-path\nCloning into 'spikespaz/clone-by-path'...\n...\n```\n\n```\nspikespaz@jacob-windows:~/github.com/spikespaz$ cbp clone-by-path\n> git clone https://github.com/spikespaz/clone-by-path.git clone-by-path\nCloning into 'clone-by-path'...\n...\n```\n\n```\nspikespaz@jacob-windows:~/github.com/spikespaz/clone-by-path$ cbp .\n> git clone https://github.com/spikespaz/clone-by-path.git .\nCloning into '.'...\n...\n```\n\n## Donations\n\nIf you would like to show appreciation for my work, I would gladly accept a small donation!\n\nI will accept donations through PayPal.Me, Buy Me a Coffee, or Patreon.\n\n[![Buy Me a Coffee](https://i.imgur.com/fN422E7.png)](https://buymeacoffee.com/spikespaz)\n[![PayPal.Me](https://i.imgur.com/JWkunGi.png)](https://paypal.me/spikespaz)\n[![Patreon](https://i.imgur.com/K05b2RO.png)](https://patreon.com/spikespaz)", "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/spikespaz/clone-by-path", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "cbp", "package_url": "https://pypi.org/project/cbp/", "platform": "", "project_url": "https://pypi.org/project/cbp/", "project_urls": { "Homepage": "https://github.com/spikespaz/clone-by-path" }, "release_url": "https://pypi.org/project/cbp/1.1.3/", "requires_dist": null, "requires_python": "", "summary": "A small CLI tool to infer the clone URL by the current path and arguments.", "version": "1.1.3" }, "last_serial": 4401162, "releases": { "1.1.1": [ { "comment_text": "", "digests": { "md5": "b402a9a6d14b52d3c9a5fa16738c5e2d", "sha256": "575a363cac8e46d543db1b30a81bc277861cdfd9acbc4c2929ce85fb6d1291c9" }, "downloads": -1, "filename": "cbp-1.1.1.tar.gz", "has_sig": false, "md5_digest": "b402a9a6d14b52d3c9a5fa16738c5e2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2472, "upload_time": "2018-10-22T04:24:17", "url": "https://files.pythonhosted.org/packages/cd/85/9bb7c227128fa83b875309e70331fd9c38545306e7b7936217b87715eeae/cbp-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "74ea98c33b03b434972b517140a02415", "sha256": "08e1bed8b33bff62704d7889bdfe5dc21601d0525cc7d2c69c1d2dea058e231c" }, "downloads": -1, "filename": "cbp-1.1.2.tar.gz", "has_sig": false, "md5_digest": "74ea98c33b03b434972b517140a02415", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2577, "upload_time": "2018-10-22T04:35:51", "url": "https://files.pythonhosted.org/packages/18/20/b4c8fcb11c62207cfd7a09d98b806021990016f820e989a5342e4402fc26/cbp-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "34cd337dec40b417119f34e12a35d707", "sha256": "85f051fc6b7a308e08b7bfbf764cc2aaba944d2c4d11df3e91e3dcfe1af06e06" }, "downloads": -1, "filename": "cbp-1.1.3.tar.gz", "has_sig": false, "md5_digest": "34cd337dec40b417119f34e12a35d707", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2573, "upload_time": "2018-10-22T05:35:44", "url": "https://files.pythonhosted.org/packages/4a/b5/e0c16306d2992e2d2d0f407841a240d761b2b5465add4f80100f084bfd46/cbp-1.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "34cd337dec40b417119f34e12a35d707", "sha256": "85f051fc6b7a308e08b7bfbf764cc2aaba944d2c4d11df3e91e3dcfe1af06e06" }, "downloads": -1, "filename": "cbp-1.1.3.tar.gz", "has_sig": false, "md5_digest": "34cd337dec40b417119f34e12a35d707", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2573, "upload_time": "2018-10-22T05:35:44", "url": "https://files.pythonhosted.org/packages/4a/b5/e0c16306d2992e2d2d0f407841a240d761b2b5465add4f80100f084bfd46/cbp-1.1.3.tar.gz" } ] }