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.
@@ -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.0"
18
+ image_name = "aotuai/brainframe-cli-20.04:0.3.2"
19
19
  host_user = getpass.getuser()
20
- full_command = f"docker run -it --rm -v .:/host -w /host -e HOST_USER={host_user} {image_name} bash"
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: # subprocess.CalledProcessError:
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
@@ -12,10 +12,10 @@ def shell():
12
12
  args = _parse_args()
13
13
  brainframe_shell.run()
14
14
 
15
+
15
16
  def _parse_args():
16
17
  parser = ArgumentParser(
17
18
  description=i18n.t("shell.description"), usage=i18n.t("shell.usage")
18
19
  )
19
20
 
20
21
  return subcommand_parse_args(parser)
21
-
@@ -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 server.\n\n\
28
- To get started with a new BrainFrame instance, run \"brainframe install\". To
29
- see more options, run \"brainframe -h\"."
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: brainframe-cli
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Makes installing and managing a BrainFrame server easy
5
5
  Home-page: https://github.com/aotuai/brainframe_cli
6
6
  License: BSD-3-Clause
@@ -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=7FzJbypMnL-tdoDy1ldDSU77S5cy200nT9MHT5bi-HA,752
4
- brainframe/cli/commands/__init__.py,sha256=XfDqdUiaG8Sg0YK6Dh7A8QeuT04_JtZxqsKTvnuMCbg,257
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=omFeCdFyLcoYcTiwBKzPojwIjDd9c2CGWOnzWQjkjLo,422
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=aorYoz1TrKLiNylQJVpryKUT4mG_O2KXyfx2xIgpQmQ,1291
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.1.dist-info/entry_points.txt,sha256=Tah5GI0gjeVzUGLJSPd5eIYQHb80Z2f7qEPtDQa1FPE,55
31
- brainframe_cli-0.2.1.dist-info/COPYING,sha256=gUdx8BDkY31TjlE3BXyajv8oSs-1hxBD4NUn-hUZi6w,1502
32
- brainframe_cli-0.2.1.dist-info/WHEEL,sha256=DA86_h4QwwzGeRoz62o1svYt5kGEXpoUTuTtwzoTb30,83
33
- brainframe_cli-0.2.1.dist-info/METADATA,sha256=IZg2gJb79LuCVEWzqhQniikKkqXlJTrKHHJkbVg9EQg,3271
34
- brainframe_cli-0.2.1.dist-info/RECORD,,
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,,