sera/commands/crypt.py
def encrypt(ctx, recursive, password, root, pattern):
    """Encrypt files on path matching glob pattern"""
    password = password or click.prompt("Enter password", hide_input=True).strip().encode()
    if ctx.obj['local']:
        apply_crypto(password, recursive, root, pattern)
    else:
        out = remote('encrypt', ctx)
        return lprint(ctx, out)
Encrypt files on path matching glob pattern
Encrypt files on path matching glob pattern
Encrypt files on path matching glob pattern
def encrypt(ctx, recursive, password, root, pattern):
    password = password or click.prompt("Enter password", hide_input=True).strip().encode()
    if ctx.obj['local']:
        apply_crypto(password, recursive, root, pattern)
    else:
        out = remote('encrypt', ctx)
        return lprint(ctx, out)
def encrypt ( ctx , recursive , password , root , pattern ) : password = password or click . prompt ( "Enter password" , hide_input = True ) . strip ( ) . encode ( ) if ctx . obj [ 'local' ] : apply_crypto ( password , recursive , root , pattern ) else : out = remote ( 'encrypt' , ctx ) return lprint ( ctx , out )
Encrypt files on path matching glob pattern
Encrypt files on path matching glob pattern
"""Encrypt files on path matching glob pattern"""
ctx
recursive
password
root
pattern