Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 9525e81

Browse files
committed
Restore j cli
1 parent 9ae8183 commit 9525e81

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

packages/jumpstarter-cli/jumpstarter_cli/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from .create import create
1010
from .delete import delete
1111
from .get import get
12+
from .j import j
1213
from .login import login
1314
from .run import run
1415
from .shell import shell
@@ -35,5 +36,7 @@ def jmp():
3536
jmp.add_command(admin)
3637
jmp.add_command(version)
3738

39+
__all__ = ["jmp", "j"]
40+
3841
if __name__ == "__main__":
3942
jmp()
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import sys
2+
3+
import asyncclick as click
4+
from jumpstarter_cli_common.exceptions import handle_exceptions
5+
6+
from jumpstarter.common.utils import env
7+
8+
9+
def j():
10+
with env() as client:
11+
12+
@handle_exceptions
13+
def cli():
14+
client.cli()(standalone_mode=False)
15+
16+
try:
17+
cli()
18+
except click.ClickException as e:
19+
e.show()
20+
sys.exit(1)

packages/jumpstarter-cli/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ dev = [
2525

2626
[project.scripts]
2727
jmp = "jumpstarter_cli:jmp"
28+
j = "jumpstarter_cli:j"
2829

2930
[tool.hatch.build.targets.wheel]
3031
packages = ["jumpstarter_cli"]

0 commit comments

Comments
 (0)