Show More
@@ -35,6 +35,13 b' sys.path.append(rc_path)' | |||||
35 |
|
35 | |||
36 | log = logging.getLogger(__name__) |
|
36 | log = logging.getLogger(__name__) | |
37 |
|
37 | |||
|
38 | welcome_banner = """Welcome to RhodeCode iShell. | |||
|
39 | Type `exit` to exit the shell. | |||
|
40 | iShell is interactive shell to interact directly with the | |||
|
41 | internal RhodeCode APIs. You can rescue your lost password, | |||
|
42 | or reset some user/system settings. | |||
|
43 | """ | |||
|
44 | ||||
38 |
|
45 | |||
39 | class Command(BasePasterCommand): |
|
46 | class Command(BasePasterCommand): | |
40 |
|
47 | |||
@@ -61,12 +68,12 b' class Command(BasePasterCommand):' | |||||
61 |
|
68 | |||
62 | try: |
|
69 | try: | |
63 | from IPython import embed |
|
70 | from IPython import embed | |
64 |
from |
|
71 | from traitlets.config import Config | |
65 | cfg = Config() |
|
72 | cfg = Config() | |
66 | cfg.InteractiveShellEmbed.confirm_exit = False |
|
73 | cfg.InteractiveShellEmbed.confirm_exit = False | |
67 |
embed(config=cfg, banner1= |
|
74 | embed(config=cfg, banner1=welcome_banner) | |
68 | except ImportError: |
|
75 | except ImportError: | |
69 |
print |
|
76 | print('ipython installation required for ishell') | |
70 | sys.exit(-1) |
|
77 | sys.exit(-1) | |
71 |
|
78 | |||
72 | def update_parser(self): |
|
79 | def update_parser(self): |
General Comments 0
You need to be logged in to leave comments.
Login now