todo
This commit is contained in:
parent
0fd38ea70c
commit
d76fac352f
4 changed files with 8 additions and 5 deletions
4
TODO.md
4
TODO.md
|
|
@ -2,4 +2,6 @@
|
|||
tags:
|
||||
- frrr
|
||||
---
|
||||
+ plugin writers
|
||||
+ todo format import/export
|
||||
+ documentation
|
||||
+ rich verbosity
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
BIN
test/office.odt
BIN
test/office.odt
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue