yage
eaefc99774
===================================================================== 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
20 lines
297 B
Python
Executable File
20 lines
297 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
from py.redis.client import Client
|
|
from py.scwrypts import interactive, getenv
|
|
|
|
|
|
@interactive
|
|
def main():
|
|
r = Client
|
|
|
|
print(f'''
|
|
>>> r = StrictRedis({getenv("REDIS_HOST")}:{getenv("REDIS_PORT")})
|
|
''')
|
|
|
|
return locals()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|