Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 224 Bytes
import sys
from appvalidator import validate_app, validate_packaged_app
path = sys.argv[1]
if path.endswith(".webapp"):
print validate_app(path, format="json")
else:
print validate_packaged_app(path, format="json")