mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Version command
This commit is contained in:
parent
b934194622
commit
e267ca9172
@ -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()
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user