Skip to main content

A simple tool to search the expression in the project scope for GitLab and GitHub repositories.

Project description

GIT SEARCH COMMAND

PyPI Last commit Code style pre-commit License

A simple tool to search the expression in files for your GitLab and GitHub repositories.

Prerequisites

  1. Install Python3+.
  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

Search in GitLab

gsc gl search <keywork> --project <project_id>

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 <keywork> --repository <repository_full_name>

See more

Read the wiki for the detail of gsc commands.

License

Apache

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.0.0.tar.gz (257.5 kB view hashes)

Uploaded Source

Built Distribution

git_search_command-2.0.0-py3-none-any.whl (31.4 kB view hashes)

Uploaded Python 3

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