Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Turris
nsfarm
Commits
af8764fe
Verified
Commit
af8764fe
authored
Mar 24, 2022
by
Jan Miksik
Browse files
fixup! feature: Added uci interface for board
parent
8a93a5e9
Pipeline
#96940
passed with stages
in 1 minute and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nsfarm/setup/uci.py
View file @
af8764fe
...
...
@@ -91,7 +91,7 @@ class UciShell(Setup):
# setup
self
.
_uci
(
"set"
,
config
,
value
)
def
add_list
(
self
,
config
:
str
,
values
:
typing
.
Iterable
[
tuple
]):
def
add_list
(
self
,
config
:
str
,
values
:
typing
.
Union
[
tuple
,
list
]):
# backup
if
self
.
_do_backup
:
if
"@"
in
config
:
...
...
@@ -191,7 +191,7 @@ class UciShell(Setup):
# setup
self
.
_uci
(
"del"
,
config
)
def
del_list
(
self
,
config
:
str
,
values
:
list
[
st
r
]
=
[]):
def
del_list
(
self
,
config
:
str
,
values
:
typing
.
Union
[
tuple
,
li
st
]
=
[]):
# backup
if
self
.
_do_backup
:
_pre_backup
=
self
.
get
(
config
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment