# GIT SEARCH COMMAND
[![PyPI](https://img.shields.io/pypi/v/git-search-command?label=PyPi&logo=pypi&logoColor=white)](https://pypi.org/project/git-search-command/)
[![Last commit](https://img.shields.io/github/last-commit/jamesnguyen46/git-search-command?label=Last%20Commit&logo=github&logoColor=white&color=yellow)](https://github.com/jamesnguyen46/git-search-command/commits/)
[![Coverage](https://img.shields.io/codecov/c/github/jamesnguyen46/git-search-command?token=HO0BAT95VI&label=Coverage&logo=codecov&logoColor=white)](https://codecov.io/gh/jamesnguyen46/git-search-command)
[![Github Action](https://img.shields.io/github/actions/workflow/status/jamesnguyen46/git-search-command/push_pull_request.yml?label=CI&logo=github-actions&logoColor=white)](https://github.com/jamesnguyen46/git-search-command/actions/workflows/push_pull_request.yml)
[![License](https://img.shields.io/badge/license-Apache-orange?label=License&logo=apache&logoColor=white)](https://github.com/jamesnguyen46/git-search-command/blob/main/LICENSE)
A simple tool to search the content in your GitLab project or GitHub repositories.
> This project has been implemented for PERSONAL USE. If you want more advanced features like creating issue, pull request ... may be refer to use [GLab](https://gitlab.com/gitlab-org/cli) or [GitHub CLI](https://github.com/cli/cli)
>
> ## If this project is helpful for you, show your love ❤️ by putting a ⭐ on this project 😉.
## Prerequisites
1. Install [Python3.7+](https://www.python.org/downloads/).
2. Create a personal access token on [GitLab](https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html) or [GitHub](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).
## Installation
```
python -m pip install --upgrade pip
python -m pip install git-search-command
```
## Usage
### Environment
After finishing the installation you need to create new environment for searching
```
gsc gl env --new <environment_name>
```
Then input your host name and personal token as following
![gsc_setup_env](https://user-images.githubusercontent.com/9126025/205210447-517c3fcc-6b5b-4d39-8c4d-aa89e1dc7ecc.gif)
### Search in GitLab
Default is to search all projects that you owned.
```
gsc gl search <keywork>
```
![gsc_gl_search](https://user-images.githubusercontent.com/9126025/205210438-274af890-4dc3-498b-8cc0-a01621d275ab.gif)
Search in a specific project
```
gsc gl search <keywork> --project <project_id>
```
Search in a specific group
```
gsc gl search <keywork> --group <group_id_or_group_path>
```
### Search in GitHub
Default is to search all repositories that you owned, not fork repository.
```
gsc gh search <keywork>
```
![gsc_gh_search](https://user-images.githubusercontent.com/9126025/205210430-1d495ebf-1538-413e-b3af-a60aeb144603.gif)
Search in a specific repository
```
gsc gh search <keywork> --repository <repository_full_name>
```
### See more
Read the [wiki](https://github.com/jamesnguyen46/git-search-command/wiki) for the detail of `gsc` commands.
## License
```
Copyright (C) 2022 James Nguyen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
Raw data
{
"_id": null,
"home_page": "https://github.com/jamesnguyen46/git-search-command",
"name": "git-search-command",
"maintainer": "jamesnguyen46",
"docs_url": null,
"requires_python": ">=3.7,<4",
"maintainer_email": "thachnguyen1989@gmail.com",
"keywords": "gitlab,search,command line,python,git,github",
"author": "jamesnguyen46",
"author_email": "thachnguyen1989@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a3/23/a60c08af1c1fd053419852b2a036cb942e0e28c650482b6fc2c0b180f50b/git_search_command-2.1.2.tar.gz",
"platform": null,
"description": "# GIT SEARCH COMMAND\n\n[![PyPI](https://img.shields.io/pypi/v/git-search-command?label=PyPi&logo=pypi&logoColor=white)](https://pypi.org/project/git-search-command/)\n[![Last commit](https://img.shields.io/github/last-commit/jamesnguyen46/git-search-command?label=Last%20Commit&logo=github&logoColor=white&color=yellow)](https://github.com/jamesnguyen46/git-search-command/commits/)\n[![Coverage](https://img.shields.io/codecov/c/github/jamesnguyen46/git-search-command?token=HO0BAT95VI&label=Coverage&logo=codecov&logoColor=white)](https://codecov.io/gh/jamesnguyen46/git-search-command)\n[![Github Action](https://img.shields.io/github/actions/workflow/status/jamesnguyen46/git-search-command/push_pull_request.yml?label=CI&logo=github-actions&logoColor=white)](https://github.com/jamesnguyen46/git-search-command/actions/workflows/push_pull_request.yml)\n[![License](https://img.shields.io/badge/license-Apache-orange?label=License&logo=apache&logoColor=white)](https://github.com/jamesnguyen46/git-search-command/blob/main/LICENSE)\n\nA simple tool to search the content in your GitLab project or GitHub repositories.\n\n> This project has been implemented for PERSONAL USE. If you want more advanced features like creating issue, pull request ... may be refer to use [GLab](https://gitlab.com/gitlab-org/cli) or [GitHub CLI](https://github.com/cli/cli)\n>\n> ## If this project is helpful for you, show your love \u2764\ufe0f by putting a \u2b50 on this project \ud83d\ude09.\n\n## Prerequisites\n\n1. Install [Python3.7+](https://www.python.org/downloads/).\n2. Create a personal access token on [GitLab](https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html) or [GitHub](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).\n\n## Installation\n\n```\npython -m pip install --upgrade pip\npython -m pip install git-search-command\n```\n\n## Usage\n\n### Environment\n\nAfter finishing the installation you need to create new environment for searching\n\n```\ngsc gl env --new <environment_name>\n```\n\nThen input your host name and personal token as following\n\n![gsc_setup_env](https://user-images.githubusercontent.com/9126025/205210447-517c3fcc-6b5b-4d39-8c4d-aa89e1dc7ecc.gif)\n\n### Search in GitLab\n\nDefault is to search all projects that you owned.\n\n```\ngsc gl search <keywork>\n```\n\n![gsc_gl_search](https://user-images.githubusercontent.com/9126025/205210438-274af890-4dc3-498b-8cc0-a01621d275ab.gif)\n\nSearch in a specific project\n\n```\ngsc gl search <keywork> --project <project_id>\n```\n\nSearch in a specific group\n\n```\ngsc gl search <keywork> --group <group_id_or_group_path>\n```\n\n### Search in GitHub\n\nDefault is to search all repositories that you owned, not fork repository.\n\n```\ngsc gh search <keywork>\n```\n\n![gsc_gh_search](https://user-images.githubusercontent.com/9126025/205210430-1d495ebf-1538-413e-b3af-a60aeb144603.gif)\n\nSearch in a specific repository\n\n```\ngsc gh search <keywork> --repository <repository_full_name>\n```\n\n### See more\n\nRead the [wiki](https://github.com/jamesnguyen46/git-search-command/wiki) for the detail of `gsc` commands.\n\n## License\n\n```\nCopyright (C) 2022 James Nguyen\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n```\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "A simple tool to search the content in GitLab and GitHub.",
"version": "2.1.2",
"project_urls": {
"Bug Reports": "https://github.com/jamesnguyen46/git-search-command/issues",
"Documentation": "https://github.com/jamesnguyen46/git-search-command/wiki",
"Homepage": "https://github.com/jamesnguyen46/git-search-command",
"Repository": "https://github.com/jamesnguyen46/git-search-command"
},
"split_keywords": [
"gitlab",
"search",
"command line",
"python",
"git",
"github"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5fb7f4bd123fa6848b91f73143dfb6d93f9cd283f3a76e3b7f324188cad6f15e",
"md5": "ee3034a755aa54fca58479e52162c73c",
"sha256": "70b497850a162a628a13187bc00de90f22690ebfe85ecc805c22d29f1d6b52de"
},
"downloads": -1,
"filename": "git_search_command-2.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ee3034a755aa54fca58479e52162c73c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4",
"size": 34204,
"upload_time": "2023-10-26T02:53:15",
"upload_time_iso_8601": "2023-10-26T02:53:15.791164Z",
"url": "https://files.pythonhosted.org/packages/5f/b7/f4bd123fa6848b91f73143dfb6d93f9cd283f3a76e3b7f324188cad6f15e/git_search_command-2.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a323a60c08af1c1fd053419852b2a036cb942e0e28c650482b6fc2c0b180f50b",
"md5": "a5ea09f3a9016402af14b315945c91e9",
"sha256": "ecbfd5801da4ec6b025c54b1d39a5ca7a6886fcbfa4d4448e1cd39a0397076b5"
},
"downloads": -1,
"filename": "git_search_command-2.1.2.tar.gz",
"has_sig": false,
"md5_digest": "a5ea09f3a9016402af14b315945c91e9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4",
"size": 22605,
"upload_time": "2023-10-26T02:53:17",
"upload_time_iso_8601": "2023-10-26T02:53:17.076274Z",
"url": "https://files.pythonhosted.org/packages/a3/23/a60c08af1c1fd053419852b2a036cb942e0e28c650482b6fc2c0b180f50b/git_search_command-2.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-26 02:53:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jamesnguyen46",
"github_project": "git-search-command",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "git-search-command"
}