aboutsummaryrefslogtreecommitdiffstats
path: root/cli.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-14 12:59:30 +0000
committerAlex Schofield <git@ajschof.me>2025-02-14 12:59:30 +0000
commit02478f2e48302441f86f3eeaba80119d6bc7ccf1 (patch)
tree6e957982a8a12bbce5d01f9435b416c32a2b05a5 /cli.py
parent9bc5d21ae7376792c6a4813e1f1ef16bfb42ec37 (diff)
downloadgdpr-obfuscator-02478f2e48302441f86f3eeaba80119d6bc7ccf1.tar.gz
gdpr-obfuscator-02478f2e48302441f86f3eeaba80119d6bc7ccf1.zip
update cli.py to properly read from local csv files
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli.py b/cli.py
index 0bbaf89..bb12421 100644
--- a/cli.py
+++ b/cli.py
@@ -1,5 +1,5 @@
import argparse
-from obfuscator.csv_reader import read_local, read_s3
+from obfuscator.csv_reader import CSVReader
def main():
parser = argparse.ArgumentParser(description="gdpr-obfuscator")
@@ -10,7 +10,9 @@ def main():
args = parser.parse_args()
if args.local and not args.s3:
- print(read(args.local))
+ reader = CSVReader(args.local)
+ data = reader.read_local()
+ print(data)
else:
pass
git.ajschof.me — hosted by ajschofield — powered by cgit