diff --git a/TODO.md b/TODO.md index 7d31ae0..1d51301 100644 --- a/TODO.md +++ b/TODO.md @@ -2,4 +2,6 @@ tags: - frrr --- -+ plugin writers \ No newline at end of file ++ todo format import/export ++ documentation ++ rich verbosity \ No newline at end of file diff --git a/orvani/cmd.py b/orvani/cmd.py index a16649d..2c5e2fc 100644 --- a/orvani/cmd.py +++ b/orvani/cmd.py @@ -84,7 +84,8 @@ def main(): 'move', 'mv', 'del', 'rm', 'clean', 'purge', - 'export' + 'write', + 'import', 'export' ]) p.add_argument("file", nargs="?", type=str, help=SUPPRESS) p.add_argument("context", nargs="*", type=str, help=SUPPRESS) @@ -147,9 +148,9 @@ def main(): args.file = '' orvani.clean(args.file, args.not_recursive) - elif args.command in ['export']: + elif args.command in ['write']: if args.file and args.context: - orvani.export(args.context[0], args.file) + orvani.write(args.context[0], args.file) if __name__ == '__main__': main() diff --git a/orvani/orvani.py b/orvani/orvani.py index b246952..19f7ece 100644 --- a/orvani/orvani.py +++ b/orvani/orvani.py @@ -471,7 +471,7 @@ class OrvaniTag: elements.append(None) return elements - def export(self, filename: str, method: str): + def write(self, filename: str, method: str): obj = { 'file' : Path(), 'config' : self.CONFIG, diff --git a/test/office.odt b/test/office.odt index 5f5748e..350910b 100644 Binary files a/test/office.odt and b/test/office.odt differ