diff --git a/crates/cli/README.md b/crates/cli/README.md index eba40edcc..0158db429 100644 --- a/crates/cli/README.md +++ b/crates/cli/README.md @@ -3,7 +3,7 @@ ``` cargo build cargo install --path . -marzano --help +grit --help ``` ## Usage @@ -11,7 +11,7 @@ marzano --help 1. check to run a pattern on a file ``` - marzano check --pattern=test_jsx.grit test_jsx.js + grit check --pattern=test_jsx.grit test_jsx.js ``` ## Tests diff --git a/python/gritql/installer.py b/python/gritql/installer.py index 01c0590b4..9ce7112bd 100644 --- a/python/gritql/installer.py +++ b/python/gritql/installer.py @@ -46,8 +46,8 @@ def find_install() -> Path: install_dir = dir_name / ".install" target_dir = install_dir / "bin" - target_path = target_dir / "marzano" - temp_file = target_dir / "marzano.tmp" + target_path = target_dir / "grit" + temp_file = target_dir / "grit.tmp" if target_path.exists(): _debug(f"{target_path} already exists") @@ -67,7 +67,7 @@ def find_install() -> Path: arch = _get_arch() _debug(f"Using architecture {arch}") - file_name = f"marzano-{arch}-{platform}" + file_name = f"grit-{arch}-{platform}" download_url = f"https://github.com/getgrit/gritql/releases/latest/download/{file_name}.tar.gz" sys.stdout.write(f"Downloading Grit CLI from {download_url}\n") diff --git a/python/gritql/tests/test_installer.py b/python/gritql/tests/test_installer.py index 7f38c1995..1b55bf434 100644 --- a/python/gritql/tests/test_installer.py +++ b/python/gritql/tests/test_installer.py @@ -22,10 +22,10 @@ def test_find_install_download_grit_macos(): result = find_install() assert isinstance(result, Path) - assert result.name == 'marzano' + assert result.name == 'grit' # Test the URL that is called - expected_url = "https://github.com/getgrit/gritql/releases/latest/download/marzano-aarch64-apple-darwin.tar.gz" + expected_url = "https://github.com/getgrit/gritql/releases/latest/download/grit-aarch64-apple-darwin.tar.gz" mock_client.return_value.__enter__.return_value.get.assert_called_once_with(expected_url, follow_redirects=True) def test_find_install_download_grit_linux(): @@ -43,10 +43,10 @@ def test_find_install_download_grit_linux(): result = find_install() assert isinstance(result, Path) - assert result.name == 'marzano' + assert result.name == 'grit' # Test the URL that is called - expected_url = "https://github.com/getgrit/gritql/releases/latest/download/marzano-x86_64-unknown-linux-gnu.tar.gz" + expected_url = "https://github.com/getgrit/gritql/releases/latest/download/grit-x86_64-unknown-linux-gnu.tar.gz" mock_client.return_value.__enter__.return_value.get.assert_called_once_with(expected_url, follow_redirects=True) def test_find_install_windows(): diff --git a/python/pyproject.toml b/python/pyproject.toml index 952ce43e7..734bc8334 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -6,7 +6,7 @@ classifiers = [ "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] -version = "0.1.5" +version = "0.2.0" dependencies = ["typer>=0.9.0", "httpx>=0.18.2"] [project.optional-dependencies] @@ -15,7 +15,7 @@ dev = ["pytest>=7.0"] [tool.poetry] name = "gritql" -version = "0.1.5" +version = "0.2.0" description = "Python bindings for GritQL" authors = ["Grit "] license = "MIT"