Commit 753c3cc2 authored by Moul's avatar Moul Committed by Mael

[mod] #183: cert: use confirm() from Click

parent b32eda0e
......@@ -16,16 +16,14 @@ along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
"""
import webbrowser
from sys import exit
from click import command, echo_via_pager
from click import command, echo_via_pager, confirm
def license_approval(currency):
if currency != "g1":
return
display_license()
if input("Do you approve Ğ1 license [yes/no]? ") != "yes":
exit(1)
confirm("Do you approve Ğ1 license?", abort=True)
@command("license", help="Display Ğ1 license")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment