nercone-shell 0.2.3__tar.gz → 0.2.5__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.
- nercone_shell-0.2.5/PKG-INFO +62 -0
- nercone_shell-0.2.5/README.md +48 -0
- {nercone_shell-0.2.3 → nercone_shell-0.2.5}/pyproject.toml +1 -1
- {nercone_shell-0.2.3 → nercone_shell-0.2.5}/src/nercone_shell/__main__.py +6 -3
- nercone_shell-0.2.3/PKG-INFO +0 -16
- nercone_shell-0.2.3/README.md +0 -2
- {nercone_shell-0.2.3 → nercone_shell-0.2.5}/src/nercone_shell/__init__.py +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: nercone-shell
|
|
3
|
+
Version: 0.2.5
|
|
4
|
+
Summary: Modern shell for Developers
|
|
5
|
+
Author: Nercone
|
|
6
|
+
Author-email: Nercone <nercone@diamondgotcat.net>
|
|
7
|
+
License: MIT
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Dist: nercone-modern
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<img width="1710" alt="Screenshot" src="https://github.com/user-attachments/assets/a717ebd3-c9d4-447c-86a5-7d33eea9c028" />
|
|
17
|
+
|
|
18
|
+
# Nersh (Nercone Shell)
|
|
19
|
+
Modern shell for Developers
|
|
20
|
+
|
|
21
|
+
## Requiments
|
|
22
|
+
- CPython 3.9+
|
|
23
|
+
- `uv` [PyPI↗︎](https://pypi.org/project/uv/) or `pip3` [PyPI↗︎](https://pypi.org/project/pip/)
|
|
24
|
+
- `nercone-modern` [PyPI↗︎](https://pypi.org/project/nercone-modern/)
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
### using uv (recommended)
|
|
29
|
+
```
|
|
30
|
+
uv tool install nercone-shell
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### using pip3
|
|
34
|
+
|
|
35
|
+
**System Python:**
|
|
36
|
+
```
|
|
37
|
+
pip3 install nercone-shell --break-system-packages
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Venv Python:**
|
|
41
|
+
```
|
|
42
|
+
pip3 install nercone-shell
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Update
|
|
46
|
+
|
|
47
|
+
### using uv (recommended)
|
|
48
|
+
```
|
|
49
|
+
uv tool install nercone-shell --upgrade
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### using pip3
|
|
53
|
+
|
|
54
|
+
**System Python:**
|
|
55
|
+
```
|
|
56
|
+
pip3 install nercone-shell --upgrade --break-system-packages
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Venv Python:**
|
|
60
|
+
```
|
|
61
|
+
pip3 install nercone-shell --upgrade
|
|
62
|
+
```
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
<img width="1710" alt="Screenshot" src="https://github.com/user-attachments/assets/a717ebd3-c9d4-447c-86a5-7d33eea9c028" />
|
|
3
|
+
|
|
4
|
+
# Nersh (Nercone Shell)
|
|
5
|
+
Modern shell for Developers
|
|
6
|
+
|
|
7
|
+
## Requiments
|
|
8
|
+
- CPython 3.9+
|
|
9
|
+
- `uv` [PyPI↗︎](https://pypi.org/project/uv/) or `pip3` [PyPI↗︎](https://pypi.org/project/pip/)
|
|
10
|
+
- `nercone-modern` [PyPI↗︎](https://pypi.org/project/nercone-modern/)
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
### using uv (recommended)
|
|
15
|
+
```
|
|
16
|
+
uv tool install nercone-shell
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### using pip3
|
|
20
|
+
|
|
21
|
+
**System Python:**
|
|
22
|
+
```
|
|
23
|
+
pip3 install nercone-shell --break-system-packages
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**Venv Python:**
|
|
27
|
+
```
|
|
28
|
+
pip3 install nercone-shell
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Update
|
|
32
|
+
|
|
33
|
+
### using uv (recommended)
|
|
34
|
+
```
|
|
35
|
+
uv tool install nercone-shell --upgrade
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### using pip3
|
|
39
|
+
|
|
40
|
+
**System Python:**
|
|
41
|
+
```
|
|
42
|
+
pip3 install nercone-shell --upgrade --break-system-packages
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Venv Python:**
|
|
46
|
+
```
|
|
47
|
+
pip3 install nercone-shell --upgrade
|
|
48
|
+
```
|
|
@@ -17,7 +17,6 @@ import readline
|
|
|
17
17
|
import subprocess
|
|
18
18
|
from pathlib import Path
|
|
19
19
|
from nercone_modern.color import ModernColor
|
|
20
|
-
from nercone_modern.text import ModernText
|
|
21
20
|
from importlib.metadata import version, PackageNotFoundError
|
|
22
21
|
|
|
23
22
|
try:
|
|
@@ -186,6 +185,10 @@ def run_line(command: str) -> int:
|
|
|
186
185
|
cmd = args[0]
|
|
187
186
|
if cmd == "version":
|
|
188
187
|
show_version()
|
|
188
|
+
elif cmd == "reset":
|
|
189
|
+
reset()
|
|
190
|
+
elif cmd == "reload":
|
|
191
|
+
reload()
|
|
189
192
|
elif cmd == "cd":
|
|
190
193
|
target = " ".join(args[1:])
|
|
191
194
|
if not target:
|
|
@@ -274,8 +277,8 @@ def main() -> int:
|
|
|
274
277
|
readline.read_history_file(NERSH_HISTORY_PATH)
|
|
275
278
|
while True:
|
|
276
279
|
try:
|
|
277
|
-
|
|
278
|
-
run_line(
|
|
280
|
+
print(f"{ModernColor.color('green')}{getpass.getuser()}{ModernColor.color('reset')}@{os.uname()[1].rsplit('.', 1)[0]} {ModernColor.color('green')}{shorten_path(ENVIRONMENT.get('PWD', f'{Path('~').expanduser()}'))}{ModernColor.color('reset')}> ", end="")
|
|
281
|
+
run_line(input())
|
|
279
282
|
except KeyboardInterrupt:
|
|
280
283
|
print()
|
|
281
284
|
continue
|
nercone_shell-0.2.3/PKG-INFO
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: nercone-shell
|
|
3
|
-
Version: 0.2.3
|
|
4
|
-
Summary: Modern shell for Developers
|
|
5
|
-
Author: Nercone
|
|
6
|
-
Author-email: Nercone <nercone@diamondgotcat.net>
|
|
7
|
-
License: MIT
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Dist: nercone-modern
|
|
12
|
-
Requires-Python: >=3.8
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
|
|
15
|
-
# Nersh (Nercone Shell)
|
|
16
|
-
Modern shell for Developers
|
nercone_shell-0.2.3/README.md
DELETED
|
File without changes
|