0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Version command

This commit is contained in:
Kalob Taulien 2020-08-01 15:08:00 -06:00
parent b934194622
commit e267ca9172

View File

@ -242,9 +242,20 @@ class UpdateModulePaths(Command):
return change_count
class Version(Command):
description = "List which version of watch you are using"
def run(self):
import wagtail
version = wagtail.get_version(wagtail.VERSION)
print("You are using Wagtail %(version)s" % {'version': version})
COMMANDS = {
'start': CreateProject(),
'updatemodulepaths': UpdateModulePaths(),
'--version': Version()
}