This commit is contained in:
randogoth 2023-06-10 02:01:50 +03:00
parent 0fd38ea70c
commit d76fac352f
4 changed files with 8 additions and 5 deletions

View file

@ -2,4 +2,6 @@
tags:
- frrr
---
+ plugin writers
+ todo format import/export
+ documentation
+ rich verbosity

View file

@ -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()

View file

@ -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,

Binary file not shown.