Merge pull request #895 from octodns/octodns-versions-cdm

Add octodns-versions command
This commit is contained in:
Ross McFarland
2022-03-31 11:20:59 -07:00
committed by GitHub
2 changed files with 27 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/env python
'''
octoDNS Versions
'''
from __future__ import absolute_import, division, print_function, \
unicode_literals
from octodns.cmds.args import ArgumentParser
from octodns.manager import Manager
def main():
parser = ArgumentParser(description=__doc__.split('\n')[1])
parser.add_argument('--config-file', required=True,
help='The Manager configuration file to use')
args = parser.parse_args()
Manager(args.config_file)
if __name__ == '__main__':
main()
+2 -1
View File
@@ -16,7 +16,8 @@ cmds = (
'dump',
'report',
'sync',
'validate'
'validate',
'versions',
)
cmds_dir = join(dirname(__file__), 'octodns', 'cmds')
console_scripts = {