brainframe-cli 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl
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.
- brainframe/cli/brainframe_shell.py +6 -6
- brainframe/cli/commands/__init__.py +1 -1
- brainframe/cli/commands/shell.py +1 -1
- brainframe/cli/translations/portal.en.yml +4 -3
- {brainframe_cli-0.2.1.dist-info → brainframe_cli-0.2.2.dist-info}/METADATA +1 -1
- {brainframe_cli-0.2.1.dist-info → brainframe_cli-0.2.2.dist-info}/RECORD +9 -9
- {brainframe_cli-0.2.1.dist-info → brainframe_cli-0.2.2.dist-info}/COPYING +0 -0
- {brainframe_cli-0.2.1.dist-info → brainframe_cli-0.2.2.dist-info}/WHEEL +0 -0
- {brainframe_cli-0.2.1.dist-info → brainframe_cli-0.2.2.dist-info}/entry_points.txt +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
|
+
import getpass
|
|
1
2
|
import os
|
|
2
3
|
import subprocess
|
|
3
4
|
import sys
|
|
4
|
-
import getpass
|
|
5
5
|
|
|
6
6
|
import i18n
|
|
7
7
|
import requests
|
|
8
8
|
import yaml
|
|
9
9
|
|
|
10
|
-
from .brainframe_compose import assert_has_docker_permissions
|
|
11
10
|
from . import os_utils
|
|
12
11
|
from . import print_utils
|
|
12
|
+
from .brainframe_compose import assert_has_docker_permissions
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def run() -> None:
|
|
16
16
|
assert_has_docker_permissions()
|
|
17
17
|
|
|
18
|
-
image_name = "aotuai/brainframe-cli-20.04:0.3.
|
|
18
|
+
image_name = "aotuai/brainframe-cli-20.04:0.3.2"
|
|
19
19
|
host_user = getpass.getuser()
|
|
20
|
-
|
|
20
|
+
host_dir = os.getcwd()
|
|
21
|
+
full_command = f"docker run -it --rm -v {host_dir}:/host -w /host -e HOST_USER={host_user} {image_name} bash"
|
|
21
22
|
|
|
22
23
|
print_utils.translate(full_command, color=print_utils.Color.GREEN)
|
|
23
24
|
|
|
24
25
|
try:
|
|
25
26
|
subprocess.run(full_command, shell=True, check=True)
|
|
26
|
-
except Exception as e:
|
|
27
|
+
except Exception as e: # subprocess.CalledProcessError:
|
|
27
28
|
print(f"Error: Failed to pull or run the image. Details: {e}")
|
|
28
29
|
sys.exit(1)
|
|
29
|
-
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from .backup import backup
|
|
2
2
|
from .compose import compose
|
|
3
|
-
from .shell import shell
|
|
4
3
|
from .info import info
|
|
5
4
|
from .install import install
|
|
6
5
|
from .self_update import self_update
|
|
6
|
+
from .shell import shell
|
|
7
7
|
from .uninstall import uninstall
|
|
8
8
|
from .update import update
|
|
9
9
|
from .utils import by_name
|
brainframe/cli/commands/shell.py
CHANGED
|
@@ -24,6 +24,7 @@ en:
|
|
|
24
24
|
docker-compose-path-help: "The path to the docker-compose.yml"
|
|
25
25
|
unknown-command: "Unknown command: {command}"
|
|
26
26
|
no-command-provided: "This is a CLI tool for managing and installing the
|
|
27
|
-
BrainFrame
|
|
28
|
-
To get started with a new BrainFrame instance, run \"brainframe install\"
|
|
29
|
-
|
|
27
|
+
BrainFrame OS, developing BrainFrame Apps and VisionCapsules.\n\n
|
|
28
|
+
To get started with a new BrainFrame instance, run \"brainframe install\".\n
|
|
29
|
+
To use brainframe & VisionCapsule tools, run \"brainframe shell\".\n
|
|
30
|
+
To see more options, run \"brainframe -h\"."
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
brainframe/cli/__init__.py,sha256=VrXpHDu3erkzwl_WXrqINBm9xWkcyUy53IQOj042dOs,22
|
|
2
2
|
brainframe/cli/brainframe_compose.py,sha256=VUFkd9dSD5HiwVej4p-wFvdyKfaPklCcWEAKz7JKWw4,5998
|
|
3
|
-
brainframe/cli/brainframe_shell.py,sha256=
|
|
4
|
-
brainframe/cli/commands/__init__.py,sha256=
|
|
3
|
+
brainframe/cli/brainframe_shell.py,sha256=6-R3TtIGJGyZipdxV414f3_BKKXrQiTfY6dabncDtoc,788
|
|
4
|
+
brainframe/cli/commands/__init__.py,sha256=eQA24GuE8YSm6RJL86Kv1vVMtjfG565xVqhfheGtRAM,257
|
|
5
5
|
brainframe/cli/commands/backup.py,sha256=HFAs42dO4kjxQey09AOOGEEcPiVinTv9NArkP057zKY,2699
|
|
6
6
|
brainframe/cli/commands/compose.py,sha256=Io73Ao-sddbbUhf89JZoxMptjH2Dcmx6FJVsBgxqEfI,311
|
|
7
7
|
brainframe/cli/commands/info.py,sha256=WXMfLoeyYCosl9__T1Tpsh5EN3CadxQpTCYAXYCMdUE,1230
|
|
8
8
|
brainframe/cli/commands/install.py,sha256=93mQ7_3ufvC_9bpJaaJ9Onm-4wY6OvkoKtHHr84AWiE,5785
|
|
9
9
|
brainframe/cli/commands/self_update.py,sha256=tPV5hNDkUDF83KGjD85WCtb_pzA4526mAQvhCMBwYQs,3648
|
|
10
|
-
brainframe/cli/commands/shell.py,sha256=
|
|
10
|
+
brainframe/cli/commands/shell.py,sha256=cWIx8qcwHrjKMU-vSOrLuY5YNyJVedv6V-fF9cb5Y04,422
|
|
11
11
|
brainframe/cli/commands/uninstall.py,sha256=yS6THcnALobh8pDmB4E8vlZIrnLNL5Ee0tORUi9p4qo,2203
|
|
12
12
|
brainframe/cli/commands/update.py,sha256=Sxpq8a_1EF8WGqLpLbt9XBuNuvHc-uRnZSrubSec4Rw,3300
|
|
13
13
|
brainframe/cli/commands/utils.py,sha256=DmplbA6tXwdYQ6kAEvPgvuhPlQ3ycscYJNIFYaDPH9o,1082
|
|
@@ -22,13 +22,13 @@ brainframe/cli/translations/backup.en.yml,sha256=91dOE4JH_TPdKp8vRAJ3grnBVB5_jHj
|
|
|
22
22
|
brainframe/cli/translations/general.en.yml,sha256=Da321e7E0t0BcCieM8iExffBV1EeUgVgPTZeisUIUTc,2015
|
|
23
23
|
brainframe/cli/translations/info.en.yml,sha256=6dj1hstvTQ5F9UYjcK8PQaCz2zuFdtgGkAd4OAoS-BU,262
|
|
24
24
|
brainframe/cli/translations/install.en.yml,sha256=qmeVCTm-iR3bf4HNql3ieUT6TFxXTgHMHEyK2c6cwHE,3909
|
|
25
|
-
brainframe/cli/translations/portal.en.yml,sha256=
|
|
25
|
+
brainframe/cli/translations/portal.en.yml,sha256=TAPrYBb3vF6BSwKclMtRjSs3zTJt9lNAJ5k5gVpUw_U,1406
|
|
26
26
|
brainframe/cli/translations/self-update.en.yml,sha256=5_p5uEuTpSMi6FJBTTxrKhn9E38PLqWrW0nk4nNAyfE,732
|
|
27
27
|
brainframe/cli/translations/shell.en.yml,sha256=93gpkVProI4zyfXgf5HI5DctyOM58T3wQXBwLKJVpsU,396
|
|
28
28
|
brainframe/cli/translations/uninstall.en.yml,sha256=z6ZSQljS2P9AEPnfk9vbs6uLBoVQJXHLH_-z4P3-seU,1149
|
|
29
29
|
brainframe/cli/translations/update.en.yml,sha256=o9mjpipmKYcUzrP_36PBmrOI-sgA55t31gCV-neYdwI,1913
|
|
30
|
-
brainframe_cli-0.2.
|
|
31
|
-
brainframe_cli-0.2.
|
|
32
|
-
brainframe_cli-0.2.
|
|
33
|
-
brainframe_cli-0.2.
|
|
34
|
-
brainframe_cli-0.2.
|
|
30
|
+
brainframe_cli-0.2.2.dist-info/entry_points.txt,sha256=Tah5GI0gjeVzUGLJSPd5eIYQHb80Z2f7qEPtDQa1FPE,55
|
|
31
|
+
brainframe_cli-0.2.2.dist-info/COPYING,sha256=gUdx8BDkY31TjlE3BXyajv8oSs-1hxBD4NUn-hUZi6w,1502
|
|
32
|
+
brainframe_cli-0.2.2.dist-info/WHEEL,sha256=DA86_h4QwwzGeRoz62o1svYt5kGEXpoUTuTtwzoTb30,83
|
|
33
|
+
brainframe_cli-0.2.2.dist-info/METADATA,sha256=-1-7YSCNDxY6hQ4UISdXKZvOJseb6uXAdnpk5y_SIxM,3271
|
|
34
|
+
brainframe_cli-0.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|