diff --git a/README.md b/README.md index 7197d49..4798727 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,7 @@ SCryptoPy is composed of multiple commands, similar to `git`. ### Common arguments * `-v, --verbose` - Enable verbose debug output +* `-y, --yes` - Do not ask for confirmation * `-p, --print_arguments` - Print arguments and exit the script * `-ded, --no_encrypt_dirnames` - Do not encrypt directory names diff --git a/scryptopy/scrypto.py b/scryptopy/scrypto.py index 0c0233c..26a5be4 100755 --- a/scryptopy/scrypto.py +++ b/scryptopy/scrypto.py @@ -511,7 +511,8 @@ def encrypt_wrapper(args): keyfile=args.keyfile, double_check=args.double_check, encrypted_dirnames=not args.no_encrypt_dirnames, - sync=args.sync) + sync=args.sync, + confirm=not args.yes) def decrypt(input: Union[str, Path], output: Union[str, Path], @@ -617,7 +618,8 @@ def decrypt_wrapper(args): output=args.output, keyfile=args.keyfile, encrypted_dirnames=not args.no_encrypt_dirnames, - sync=args.sync) + sync=args.sync, + confirm=not args.yes) def check(unencrypted: Union[str, Path], encrypted: Union[str, Path], @@ -703,12 +705,18 @@ def check_wrapper(args): unencrypted=args.unencrypted, encrypted=args.encrypted, keyfile=args.keyfile, - encrypted_dirnames=~args.no_encrypt_dirnames) + encrypted_dirnames=~args.no_encrypt_dirnames, + confirm=not args.yes) +def find_encrypted_path(): + # TODO + pass def main(): FORMAT = '[{filename}:{lineno} - {funcName}(): {levelname}] {message}' parser = argparse.ArgumentParser() + parser.add_argument('-y', '--yes', action='store_true', + help='do not ask for confirmation') parser.add_argument('-v', '--verbose', action='store_true', help='enable verbose debug output') parser.add_argument('-p', '--print_arguments', action='store_true', diff --git a/setup.cfg b/setup.cfg index ebc7af7..6e4d6e3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = scryptopy -version = 0.12.0 +version = 0.12.1 description = a Python library for salty encryption and decryption of files and directories long_description = file: README.md long_description_content_type = text/markdown; charset=UTF-8