This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
octodns
mirror of
https://github.com/octodns/octodns
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
52
Wiki
Activity
Browse Source
Merge pull request
#44
from github/cmd-mains
Add __main__ calls to main in cmds
pull/118/head
Ross McFarland
9 years ago
committed by
GitHub
parent
ea653c7c2a
9da976122c
commit
f12bbd9191
6 changed files
with
21 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
octodns/cmds/compare.py
+4
-0
octodns/cmds/dump.py
+4
-0
octodns/cmds/report.py
+4
-0
octodns/cmds/sync.py
+4
-0
octodns/cmds/validate.py
+1
-0
octodns/manager.py
+ 4
- 0
octodns/cmds/compare.py
View File
@ -29,3 +29,7 @@ def main():
manager
=
Manager
(
args
.
config_file
)
changes
=
manager
.
compare
(
args
.
a
,
args
.
b
,
args
.
zone
)
pprint
(
changes
)
if
__name__
==
'
__main__
'
:
main
(
)
+ 4
- 0
octodns/cmds/dump.py
View File
@ -26,3 +26,7 @@ def main():
manager
=
Manager
(
args
.
config_file
)
manager
.
dump
(
args
.
zone
,
args
.
output_dir
,
*
args
.
source
)
if
__name__
==
'
__main__
'
:
main
(
)
+ 4
- 0
octodns/cmds/report.py
View File
@ -98,3 +98,7 @@ def main():
answers
=
'
*:*
'
.
join
(
sorted
(
answers
)
)
.
lower
(
)
compare
[
answers
]
=
True
stdout
.
write
(
'
,True
\n
'
if
len
(
compare
)
==
1
else
'
,False
\n
'
)
if
__name__
==
'
__main__
'
:
main
(
)
+ 4
- 0
octodns/cmds/sync.py
View File
@ -37,3 +37,7 @@ def main():
manager
=
Manager
(
args
.
config_file
)
manager
.
sync
(
eligible_zones
=
args
.
zone
,
eligible_targets
=
args
.
target
,
dry_run
=
not
args
.
doit
,
force
=
args
.
force
)
if
__name__
==
'
__main__
'
:
main
(
)
+ 4
- 0
octodns/cmds/validate.py
View File
@ -22,3 +22,7 @@ def main():
manager
=
Manager
(
args
.
config_file
)
manager
.
validate_configs
(
)
if
__name__
==
'
__main__
'
:
main
(
)
+ 1
- 0
octodns/manager.py
View File
@ -51,6 +51,7 @@ class MainThreadExecutor(object):
try
:
future
.
set_result
(
func
(
*
args
,
*
*
kwargs
)
)
except
Exception
as
e
:
# TODO: get right stacktrace here
future
.
set_exception
(
e
)
return
future
Write
Preview
Loading…
Cancel
Save