Skip to content

Commit

Permalink
Add warning line for stable --experimental flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Apr 16, 2024
1 parent af6ca09 commit 592e1f4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pynitrokey/cli/nk3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from pynitrokey.cli import trussed
from pynitrokey.cli.exceptions import CliException
from pynitrokey.cli.trussed.test import TestCase
from pynitrokey.helpers import local_print
from pynitrokey.nk3 import NK3_DATA
from pynitrokey.nk3.bootloader import Nitrokey3Bootloader
from pynitrokey.nk3.device import Nitrokey3Device
Expand Down Expand Up @@ -111,7 +112,9 @@ def update(
"""

if experimental:
"The --experimental switch is not required to run this command anymore and can be safely removed."
local_print(
"The --experimental switch is not required to run this command anymore and can be safely removed."
)

from .update import update as exec_update

Expand Down Expand Up @@ -244,7 +247,9 @@ def factory_reset(ctx: Context, experimental: bool) -> None:
"""Factory reset all functionality of the device"""

if experimental:
"The --experimental switch is not required to run this command anymore and can be safely removed."
local_print(
"The --experimental switch is not required to run this command anymore and can be safely removed."
)

with ctx.connect_device() as device:
device.admin.factory_reset()
Expand All @@ -268,7 +273,9 @@ def factory_reset_app(ctx: Context, application: str, experimental: bool) -> Non
"""Factory reset all functionality of an application"""

if experimental:
"The --experimental switch is not required to run this command anymore and can be safely removed."
local_print(
"The --experimental switch is not required to run this command anymore and can be safely removed."
)

with ctx.connect_device() as device:
device.admin.factory_reset_app(application)
Expand Down

0 comments on commit 592e1f4

Please sign in to comment.