{ "info": { "author": "AaronFlower", "author_email": "haojunzhan@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "## Clic\n\n> A cli tool for c/c++ development.\n\n### Requirements\n\nFirst, you should clone [google/googletest] and install [CMake](https://cmake.org/) in your local machine.\n\n- [google/googletest](https://github.com/google/googletest)\n- [CMake](https://cmake.org/)\n\n### Install\n\n```bash\n$ pip install clic\n```\n\n### How to use\n\nAfter googletest installed, you need to export a environment `GTEST_PATH` in your bash config file (e.g `.bashrc, .zshrc`, etc).\n\n```bash\n$ clic mycpp\n$ cd mycpp\n\n$ tree -L 1\n.\n\u251c\u2500\u2500 CMakeLists.txt\n\u251c\u2500\u2500 build\n\u251c\u2500\u2500 lib\n\u251c\u2500\u2500 solution.h\n\u2514\u2500\u2500 test.cpp\n\n2 directories, 3 files\n\n$ cd build\n$ cmake .. && make\n$ ./mycpp\n\n\u276f ./mycpp\nRunning main() from ~/mycpp/lib/googletest/googletest/src/gtest_main.cc\n[==========] Running 1 test from 1 test suite.\n[----------] Global test environment set-up.\n[----------] 1 test from test\n[ RUN ] test.INIT\nHello mycpp\n[ OK ] test.INIT (0 ms)\n[----------] 1 test from test (0 ms total)\n\n[----------] Global test environment tear-down\n[==========] 1 test from 1 test suite ran. (0 ms total)\n[ PASSED ] 1 test.\n```\n\nIf you don't want to export the `GTEST_PATH` environment, you can specify the path in the same command as follows:\n\n```bash\n$ GTEST_PATH=/path/to/cloned/googletest clic my-new-app\n$ cd my-new-app\n```\n\nNow, Enjoy your simple c/c++ project. \ud83d\ude09\n\nIn the `test.cpp` file, you can write your tests.\n\n```c++\n#include \"gtest/gtest.h\"\n#include \"gmock/gmock.h\"\n#include \"solution.h\"\n\n#include \n\nTEST(test, INIT) {\n /* write your test */\n}\n```\n\nand in the `solution.h` file you can write your solution.\n\n```c++\n#ifndef MY_SOLUTION__\n#define MY_SOLUTION__\n\nclass Solution {\npublic:\n /* write your solution */\n};\n\n#endif /* ifndef MY_SOLUTION__ */\n```\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/AaronFlower/clic", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "clic", "package_url": "https://pypi.org/project/clic/", "platform": "", "project_url": "https://pypi.org/project/clic/", "project_urls": { "Homepage": "https://github.com/AaronFlower/clic" }, "release_url": "https://pypi.org/project/clic/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "A c/c++ cli", "version": "0.1.3" }, "last_serial": 5403897, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "175171b11c6479663fea26ae298e71be", "sha256": "f55463dffdcd03e18fe420fe971886ed2b759f87f44a5c5a73d4754fd7032466" }, "downloads": -1, "filename": "clic-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "175171b11c6479663fea26ae298e71be", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2090, "upload_time": "2019-06-14T08:07:16", "url": "https://files.pythonhosted.org/packages/08/9f/3d07bf7ea19566a74db70e55296da39dae175e207fa8970169ac9ea94f66/clic-0.1-py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2e65ea39d6531e261e173c80056cb51e", "sha256": "9ea5336e48f2a24868ec8503087c037df641dc1532b82d37bd60c3afe20abb22" }, "downloads": -1, "filename": "clic-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "2e65ea39d6531e261e173c80056cb51e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4914, "upload_time": "2019-06-14T14:25:00", "url": "https://files.pythonhosted.org/packages/f9/a9/91bae3b730e873dd8f62d1b4918a4d2a07a1c61aa01fc8f252aa00b52bf9/clic-0.1.1-py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "845c4d7dee2e09e43809060446f271f6", "sha256": "8a5a473c0832e17fb2a9d2651b96465b861280370ea6a591e731462685765db8" }, "downloads": -1, "filename": "clic-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "845c4d7dee2e09e43809060446f271f6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5231, "upload_time": "2019-06-15T10:10:51", "url": "https://files.pythonhosted.org/packages/8e/87/afb1545730321d27ac534a6bfa54efd0cd3f08c73dbebc47ba293c57d7b9/clic-0.1.2-py3-none-any.whl" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "46b29a7325e86cee57afd0dc46d20389", "sha256": "20efa4134290a444bc778b6b715fc172af9d0393ac6dfb8a1ce2771b79720835" }, "downloads": -1, "filename": "clic-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "46b29a7325e86cee57afd0dc46d20389", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5398, "upload_time": "2019-06-15T12:39:06", "url": "https://files.pythonhosted.org/packages/74/59/f6f33fde2b61f11f707e08ad3e520acdf8eb71cd479b39489d27e243d528/clic-0.1.3-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "46b29a7325e86cee57afd0dc46d20389", "sha256": "20efa4134290a444bc778b6b715fc172af9d0393ac6dfb8a1ce2771b79720835" }, "downloads": -1, "filename": "clic-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "46b29a7325e86cee57afd0dc46d20389", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5398, "upload_time": "2019-06-15T12:39:06", "url": "https://files.pythonhosted.org/packages/74/59/f6f33fde2b61f11f707e08ad3e520acdf8eb71cd479b39489d27e243d528/clic-0.1.3-py3-none-any.whl" } ] }