Build your own custom commands using the Flask Framework

Опубликовано: 04 Октябрь 2024
на канале: Demos Petsas
707
22

In this Flask CLI tutorial we will use the in built Flask CLI tool as well as click to create our own Flask CLI commands as well as group them together for our in house purposes.

00:00 Introduction
01:00 Create commands
03:35 Register commands with application
03:57 Test command
04:57 Click echo statements
06:13 Organise commands in groups
07:47 Register CLI group
08:39 CLI options

Code:
https://github.com/demoskp/flask-cli-...

Personal website:
http://www.petsas.consulting