Skip to content

Commit 263c4c7

Browse files
author
ushiboy
committed
version up 1.1.0 and fix readme
1 parent b6fd368 commit 263c4c7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,20 @@ nmcli.device.status() -> List[Device]
189189

190190
Show details of device.
191191

192+
The `fields` argument applies the same effect to the command as the `-f | --fields` option. If it is omitted, the default behavior is followed.
193+
192194
```
193-
nmcli.device.show(ifname: str) -> DeviceDetails
195+
nmcli.device.show(ifname: str, fields: str = None) -> DeviceDetails
194196
```
195197

196198
#### nmcli.device.show_all
197199

198200
Show details of devices.
199201

202+
The `fields` argument applies the same effect to the command as the `-f | --fields` option. If it is omitted, the default behavior is followed.
203+
200204
```
201-
nmcli.device.show_all() -> List[DeviceDetails]
205+
nmcli.device.show_all(fields: str = None) -> List[DeviceDetails]
202206
```
203207

204208
#### nmcli.device.connect
@@ -455,6 +459,10 @@ nmcli.set_lang(lang: str) -> None
455459

456460
## Change Log
457461

462+
### 1.1.0
463+
464+
- Added fields option to `nmcli.device.show` and `nmcli.device.show_all`
465+
458466
### 1.0.0
459467

460468
- Handle connection failure exceptions with `nmcli.device.wifi_connect`.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def run_tests(self):
1313

1414
setup(
1515
name='nmcli',
16-
version='1.0.0',
16+
version='1.1.0',
1717
author='ushiboy',
1818
license='MIT',
1919
description='A python wrapper library for the network-manager cli client',

0 commit comments

Comments
 (0)