From 7ac1f98a8b7003f08e879743aae67860e47828e0 Mon Sep 17 00:00:00 2001 From: Farkhod Sadykov Date: Wed, 20 Dec 2023 05:39:34 +0100 Subject: [PATCH] New demo video and release ShellGPT v1.0.0 (#403) --- README.md | 2 +- sgpt/__version__.py | 2 +- sgpt/app.py | 1 - sgpt/role.py | 4 ++-- tests/test_integration.py | 8 -------- 5 files changed, 4 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b7844339..43a2d44a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # ShellGPT A command-line productivity tool powered by AI large language models (LLM). As developers, we can leverage AI capabilities to generate shell commands, code snippets, comments, and documentation, among other things. Forget about cheat sheets and notes, with this tool you can get accurate answers right in your terminal, and you'll probably find yourself reducing your daily Google searches, saving you valuable time and effort. ShellGPT is cross-platform compatible and supports all major operating systems, including Linux, macOS, and Windows with all major shells, such as PowerShell, CMD, Bash, Zsh, Fish, and many others. -https://user-images.githubusercontent.com/16740832/231569156-a3a9f9d4-18b1-4fff-a6e1-6807651aa894.mp4 +https://github-production-user-asset-6210df.s3.amazonaws.com/16740832/291779848-66392282-474e-4a84-8482-d20c53c8727d.mp4 ## Installation ```shell diff --git a/sgpt/__version__.py b/sgpt/__version__.py index e94731c0..5becc17c 100644 --- a/sgpt/__version__.py +++ b/sgpt/__version__.py @@ -1 +1 @@ -__version__ = "0.9.4" +__version__ = "1.0.0" diff --git a/sgpt/app.py b/sgpt/app.py index 1e81253c..9dc506db 100644 --- a/sgpt/app.py +++ b/sgpt/app.py @@ -71,7 +71,6 @@ def main( version: bool = typer.Option( False, "--version", - "-v", help="Show version.", callback=get_sgpt_version, ), diff --git a/sgpt/role.py b/sgpt/role.py index f3153cf6..dee6c031 100644 --- a/sgpt/role.py +++ b/sgpt/role.py @@ -16,7 +16,7 @@ SHELL_ROLE = """Provide only {shell} commands for {os} without any description. If there is a lack of details, provide most logical solution. Ensure the output is a valid shell command. -If multiple steps required try to combine them together. +If multiple steps required try to combine them together using &&. Provide only plain text without Markdown formatting. Do not provide markdown formatting such as ```. """ @@ -36,7 +36,7 @@ DEFAULT_ROLE = """You are programming and system administration assistant. You are managing {os} operating system with {shell} shell. -Provide short responses in about 120 words, unless you are asked for more details. +Provide short responses in about 100 words, unless you are specifically asked for more details. Use and apply Markdown formatting when possible. If you need to store any data, assume it will be stored in the conversation.""" diff --git a/tests/test_integration.py b/tests/test_integration.py index aa8536c3..3d290674 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -491,11 +491,3 @@ def test_version(self): } result = runner.invoke(app, self.get_arguments(**dict_arguments), input="d\n") assert __version__ in result.stdout - - dict_arguments = { - "prompt": "", - "-v": True, - } - - result = runner.invoke(app, self.get_arguments(**dict_arguments), input="d\n") - assert __version__ in result.stdout