===================================================================== Subscwrypts + Environment Inheritance --- Release Notes ------------------------ - added support for environment inheritance - added support for arbitrarily nested scripts (subscwrypts) - added support for CI mode - improved modularity of zsh/utils module - refactored to move some data from ~/.config/scwrypts to ~/.local/share/scwrypts - refactored various scripts to use new subscwrypt api --- New Scripts -------------------------- zsh ) - db/interactive/postgres - aws/rds/interactive-login
12 lines
279 B
Python
12 lines
279 B
Python
from bpython import embed
|
|
|
|
|
|
def interactive(function):
|
|
def main(*args, **kwargs):
|
|
print('preparing interactive environment...')
|
|
local_vars = function(*args, **kwargs)
|
|
print('environment ready; user, GO! :)')
|
|
embed(local_vars)
|
|
|
|
return main
|