From b22e8a32064544915941ab9e77c6ebfc9d17cc0f Mon Sep 17 00:00:00 2001 From: Ritchie Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Fri, 9 May 2025 23:55:22 +0200 Subject: [PATCH] Update README.md --- README.md | 24 ++++++++++++------------ pyproject.toml | 2 +- searchcode/__init__.py | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 39e9b7b..0f61741 100644 --- a/README.md +++ b/README.md @@ -60,13 +60,13 @@ Queries the code index and returns at most 100 results. ### Code Search Without Filters -#### CLI +#### Command-Line Interface ```commandline searchcode "import module" ``` -#### SDK +#### In Code ```python from pprint import pprint @@ -82,13 +82,13 @@ pprint(search) ### Filter by Language (Java and JavaScript) -#### CLI +#### Command-Line Interface ````commandline searchcode "import module" --languages java,javascript ```` -#### SDK +#### In Code ```python from searchcode import Searchcode @@ -104,13 +104,13 @@ ___ ### Filter by Source (BitBucket and CodePlex) -#### CLI +#### Command-Line Interface ```commandline searchcode "import module" --sources bitbucket,codeplex ``` -#### SDK +#### In Code ```python from searchcode import Searchcode @@ -126,13 +126,13 @@ ___ ### Filter by Lines of Code (Between 500 and 1000) -#### CLI +#### Command-Line Interface ```commandline searchcode "import module" --lines-of-code-gt 500 --lines-of-code-lt 1000 ``` -#### SDK +#### In Code ```python @@ -149,13 +149,13 @@ ___ ### With Callback Function (JSONP only) -#### CLI +#### Command-Line Interface ```commandline searchcode "import module" --callback myCallback ``` -#### SDK +#### In Code ```python from searchcode import Searchcode @@ -204,13 +204,13 @@ ___ Returns the raw data from a code file given the code id which can be found as the `id` in a code search result. -#### CLI +#### Command-Line Interface ```commandline searchode code 4061576 ``` -#### SDK +#### In Code #### Params diff --git a/pyproject.toml b/pyproject.toml index f434b97..5c2f612 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "searchcode" -version = "0.4.1" +version = "0.4.2" description = "Simple, comprehensive code search." authors = ["Ritchie Mwewa "] license = "GPLv3+" diff --git a/searchcode/__init__.py b/searchcode/__init__.py index 44ad297..cb63a3d 100644 --- a/searchcode/__init__.py +++ b/searchcode/__init__.py @@ -18,7 +18,7 @@ from .api import Searchcode __pkg__ = "searchcode" -__version__ = "0.4.1" +__version__ = "0.4.2" __author__ = "Ritchie Mwewa"