Add summary

This commit is contained in:
Digital Studium
2023-05-16 13:49:25 +03:00
parent c52a554bee
commit c4af2a7ecd
13 changed files with 33 additions and 22 deletions

View File

@@ -4,15 +4,14 @@ category: python-lifehacks
filename: how-to-easily-write-linux-cli-tool
date: 2023-04-09
---
Хочу поделиться самым простым из известных мне способов написать CLI инструмент для администрирования Linux
на Python.
Хочу поделиться самым простым из известных мне способов написать CLI инструмент для администрирования Linux на Python.
<!--more-->
## Шаг 1. Установка Fire
```bash
pip install fire
```
## Шаг 2. Создаём простейший CLI инструмент
Вот пример CLI инструмента, который выводит в терминал версию Linux:
<!--more-->
```python
#!/usr/bin/env python3
import fire