Rename manage.ConfigTemplate → manage.GenerateConfig

To be consistent with the CLI name: `generate-config`.
This commit is contained in:
Jocelyn Delalande 2018-01-06 02:50:45 +01:00
parent 3b2e11ab63
commit 7e60354c14

View file

@ -24,7 +24,7 @@ class GeneratePasswordHash(Command):
print(generate_password_hash(password)) print(generate_password_hash(password))
class ConfigTemplate(Command): class GenerateConfig(Command):
def get_options(self): def get_options(self):
return [ return [
Option('config_file', choices=[ Option('config_file', choices=[
@ -74,7 +74,7 @@ def main():
manager = Manager(app) manager = Manager(app)
manager.add_command('db', MigrateCommand) manager.add_command('db', MigrateCommand)
manager.add_command('generate_password_hash', GeneratePasswordHash) manager.add_command('generate_password_hash', GeneratePasswordHash)
manager.add_command('generate-config', ConfigTemplate) manager.add_command('generate-config', GenerateConfig)
manager.run() manager.run()