Skip to main content

A simple tool to search the content in GitLab and GitHub.

Project description

GIT SEARCH COMMAND

PyPI Last commit Coverage Github Action 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 or GitHub CLI

If this project is helpful for you, show your love ❤️ by putting a ⭐ on this project 😉.

Prerequisites

  1. Install Python3.7+.
  2. Create a personal access token on GitLab or GitHub.

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

Search in GitLab

Default is to search all projects that you owned.

gsc gl search <keywork>

gsc_gl_search

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

Search in a specific repository

gsc gh search <keywork> --repository <repository_full_name>

See more

Read the 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_search_command-2.1.2.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

git_search_command-2.1.2-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file git_search_command-2.1.2.tar.gz.

File metadata

  • Download URL: git_search_command-2.1.2.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1014-azure

File hashes

Hashes for git_search_command-2.1.2.tar.gz
Algorithm Hash digest
SHA256 ecbfd5801da4ec6b025c54b1d39a5ca7a6886fcbfa4d4448e1cd39a0397076b5
MD5 a5ea09f3a9016402af14b315945c91e9
BLAKE2b-256 a323a60c08af1c1fd053419852b2a036cb942e0e28c650482b6fc2c0b180f50b

See more details on using hashes here.

File details

Details for the file git_search_command-2.1.2-py3-none-any.whl.

File metadata

  • Download URL: git_search_command-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1014-azure

File hashes

Hashes for git_search_command-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 70b497850a162a628a13187bc00de90f22690ebfe85ecc805c22d29f1d6b52de
MD5 ee3034a755aa54fca58479e52162c73c
BLAKE2b-256 5fb7f4bd123fa6848b91f73143dfb6d93f9cd283f3a76e3b7f324188cad6f15e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page