Organizing Fabric Command List Output

I have Fabric fabfile.py with a long list of commands (and growing). When I go fab -l , I do not see the top of the list of commands. Grouping the commands under the headings will not make the list shorter, but it will make it easier to view the list - rather, the result of the Django ./manage.py help . Has anyone solved this problem?

+4
source share
1 answer

Using the new style features in Fabric, you can use namespaces . When you list your tasks, you can provide the -F ( --list-format ) argument, specifying nested as the value that will display available tasks in a nested manner, by namespace, the look of which is described here .

Cloth "nested" task lists are not quite as neat as separating the Django control commands, which list the application commands very carefully, but this is the beginning.

+2
source

Source: https://habr.com/ru/post/1488664/


All Articles