Add command to flush the log
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import xmo.dns
|
import xmo.dns
|
||||||
import xmo.dmz
|
import xmo.dmz
|
||||||
|
import xmo.log
|
||||||
import xmo.mode
|
import xmo.mode
|
||||||
import xmo.wifi
|
import xmo.wifi
|
||||||
import yaml
|
import yaml
|
||||||
|
|||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
import asyncclick as click
|
||||||
|
import re
|
||||||
|
from sagemcom_api.client import SagemcomClient
|
||||||
|
from . import xmo
|
||||||
|
|
||||||
|
|
||||||
|
@xmo.cli.command()
|
||||||
|
async def flush_log() -> None:
|
||||||
|
try:
|
||||||
|
async with xmo.flipflop('Device/DeviceInfo/FlushDeviceLog') as client:
|
||||||
|
pass
|
||||||
|
except Exception as e:
|
||||||
|
click.echo(e, err=True)
|
||||||
|
raise click.Abort()
|
||||||
Reference in New Issue
Block a user