Browse Source

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

Add octodns-versions command
pull/896/head
Ross McFarland 4 years ago
committed by GitHub
parent
commit
ec4b404f38
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions
  1. +25
    -0
      octodns/cmds/versions.py
  2. +2
    -1
      setup.py

+ 25
- 0
octodns/cmds/versions.py 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
setup.py View File

@ -16,7 +16,8 @@ cmds = (
'dump',
'report',
'sync',
'validate'
'validate',
'versions',
)
cmds_dir = join(dirname(__file__), 'octodns', 'cmds')
console_scripts = {


Loading…
Cancel
Save