Added click-log and click-didyoumean
This commit is contained in:
parent
5dfc7a0c4c
commit
7e0d656c3d
2
Pipfile
2
Pipfile
@ -10,6 +10,8 @@ click = "*"
|
||||
pigpio = "*"
|
||||
gpiozero = "*"
|
||||
colorama = "*"
|
||||
click-log = "*"
|
||||
click-didyoumean = "*"
|
||||
|
||||
[dev-packages]
|
||||
"flake8" = "*"
|
||||
|
17
Pipfile.lock
generated
17
Pipfile.lock
generated
@ -1,7 +1,7 @@
|
||||
{
|
||||
"_meta": {
|
||||
"hash": {
|
||||
"sha256": "f42ff2679d58cbb954dd285865c71c73e1a0fb7f90c85e96b462457189830517"
|
||||
"sha256": "6e6bd3a03740098cebdf88699913665272ba8a628a9c156f86ec804a64d6b168"
|
||||
},
|
||||
"pipfile-spec": 6,
|
||||
"requires": {
|
||||
@ -38,6 +38,21 @@
|
||||
"index": "pypi",
|
||||
"version": "==7.0"
|
||||
},
|
||||
"click-didyoumean": {
|
||||
"hashes": [
|
||||
"sha256:112229485c9704ff51362fe34b2d4f0b12fc71cc20f6d2b3afabed4b8bfa6aeb"
|
||||
],
|
||||
"index": "pypi",
|
||||
"version": "==0.0.3"
|
||||
},
|
||||
"click-log": {
|
||||
"hashes": [
|
||||
"sha256:16fd1ca3fc6b16c98cea63acf1ab474ea8e676849dc669d86afafb0ed7003124",
|
||||
"sha256:eee14dc37cdf3072158570f00406572f9e03e414accdccfccd4c538df9ae322c"
|
||||
],
|
||||
"index": "pypi",
|
||||
"version": "==0.3.2"
|
||||
},
|
||||
"colorama": {
|
||||
"hashes": [
|
||||
"sha256:a3d89af5db9e9806a779a50296b5fdb466e281147c2c235e8225ecc6dbf7bbf3",
|
||||
|
@ -1,7 +1,13 @@
|
||||
import click
|
||||
from click_didyoumean import DYMGroup
|
||||
import click_log
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
click_log.basic_config(logger)
|
||||
|
||||
|
||||
@click.group()
|
||||
@click.group(cls=DYMGroup)
|
||||
@click_log.simple_verbosity_option(logger)
|
||||
def cli():
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user