naturally-linux 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/PKG-INFO +3 -1
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux/cli.py +6 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux.egg-info/PKG-INFO +3 -1
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux.egg-info/requires.txt +2 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/pyproject.toml +3 -1
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/README.md +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux/__init__.py +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux/__main__.py +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux/executor.py +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux/generator.py +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux/safety.py +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux.egg-info/SOURCES.txt +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux.egg-info/dependency_links.txt +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux.egg-info/entry_points.txt +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux.egg-info/top_level.txt +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/setup.cfg +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/tests/test_executor.py +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/tests/test_generator.py +0 -0
- {naturally_linux-0.1.1 → naturally_linux-0.1.2}/tests/test_safety.py +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: naturally-linux
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Natural-language to Linux shell command AI CLI tool with safety checks
|
|
5
5
|
Requires-Python: >=3.13
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
7
7
|
Requires-Dist: groq>=1.0.0
|
|
8
|
+
Requires-Dist: mkdocs>=1.6.1
|
|
9
|
+
Requires-Dist: mkdocs-material>=9.5.49
|
|
8
10
|
Requires-Dist: pytest>=9.0.2
|
|
9
11
|
Requires-Dist: python-dotenv>=1.2.1
|
|
10
12
|
Requires-Dist: typer>=0.21.1
|
|
@@ -56,9 +56,12 @@ def run(
|
|
|
56
56
|
safety_color = typer.colors.GREEN if safety_label == "SAFE" else typer.colors.RED
|
|
57
57
|
typer.secho(f"\nSafety check: {safety_label}", fg=safety_color)
|
|
58
58
|
|
|
59
|
+
executed = False
|
|
59
60
|
if auto_approve or typer.confirm("Run this command now?", default=False):
|
|
60
61
|
stdout, stderr, returncode = run_command(command)
|
|
61
62
|
|
|
63
|
+
executed = True
|
|
64
|
+
|
|
62
65
|
if stdout:
|
|
63
66
|
typer.echo(stdout)
|
|
64
67
|
|
|
@@ -68,6 +71,9 @@ def run(
|
|
|
68
71
|
if returncode != 0:
|
|
69
72
|
raise typer.Exit(code=returncode)
|
|
70
73
|
|
|
74
|
+
if executed:
|
|
75
|
+
return
|
|
76
|
+
|
|
71
77
|
typer.secho(
|
|
72
78
|
"\nDry run mode — command not executed.",
|
|
73
79
|
fg=typer.colors.YELLOW,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: naturally-linux
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Natural-language to Linux shell command AI CLI tool with safety checks
|
|
5
5
|
Requires-Python: >=3.13
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
7
7
|
Requires-Dist: groq>=1.0.0
|
|
8
|
+
Requires-Dist: mkdocs>=1.6.1
|
|
9
|
+
Requires-Dist: mkdocs-material>=9.5.49
|
|
8
10
|
Requires-Dist: pytest>=9.0.2
|
|
9
11
|
Requires-Dist: python-dotenv>=1.2.1
|
|
10
12
|
Requires-Dist: typer>=0.21.1
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "naturally-linux"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.2"
|
|
4
4
|
description = "Natural-language to Linux shell command AI CLI tool with safety checks"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.13"
|
|
7
7
|
dependencies = [
|
|
8
8
|
"groq>=1.0.0",
|
|
9
|
+
"mkdocs>=1.6.1",
|
|
10
|
+
"mkdocs-material>=9.5.49",
|
|
9
11
|
"pytest>=9.0.2",
|
|
10
12
|
"python-dotenv>=1.2.1",
|
|
11
13
|
"typer>=0.21.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{naturally_linux-0.1.1 → naturally_linux-0.1.2}/naturally_linux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|