mirror of
https://git.digitalstudium.com/digitalstudium/digitalstudium.com
synced 2023-12-29 08:06:35 +00:00
Add summary
This commit is contained in:
@@ -6,13 +6,13 @@ date: 2023-04-09
|
||||
---
|
||||
I want to share the easiest way I know to write a CLI tool for Linux administration
|
||||
using python and Fire.
|
||||
<!--more-->
|
||||
## Step 1: Install Fire
|
||||
```bash
|
||||
pip install fire
|
||||
```
|
||||
## Step 2. Create a simple CLI tool
|
||||
Here is an example of a CLI tool that prints the Linux version to the terminal:
|
||||
<!--more-->
|
||||
```python
|
||||
#!/usr/bin/env python3
|
||||
import fire
|
||||
|
||||
Reference in New Issue
Block a user