Skip to content

Commit a127345

Browse files
author
Darren Govoni
committed
Updates
1 parent 9dd749b commit a127345

4 files changed

Lines changed: 77 additions & 6 deletions

File tree

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
# -- Project information -----------------------------------------------------
1919

20-
project = 'PCB'
21-
copyright = '2022, Darren Govoni'
20+
project = 'Flex'
21+
copyright = '2022-2026, Darren Govoni'
2222
author = 'Darren Govoni'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '0.1.0'
25+
release = '0.0.1'
2626

2727

2828
# -- General configuration ---------------------------------------------------

docs/source/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to PCB's documentation!
6+
Welcome to Flex's documentation!
77
==================================
88

99
.. toctree::
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13-
.. click:: pcb.cli:cli
14-
:prog: PCB
13+
.. click:: flex.cli:cli
14+
:prog: Flex
1515
:nested: full
1616

1717

flex/cli/__init__.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import logging
2+
import sys
3+
4+
import click
5+
6+
logging.basicConfig(
7+
level=logging.INFO,
8+
format="%(filename)s: "
9+
"%(levelname)s: "
10+
"%(funcName)s(): "
11+
"%(lineno)d:\t"
12+
"%(message)s",
13+
)
14+
15+
logger = logging.getLogger(__name__)
16+
17+
18+
@click.group(invoke_without_command=True)
19+
@click.option("--debug", is_flag=True, default=False, help="Debug switch")
20+
@click.pass_context
21+
def cli(context, debug):
22+
for handler in logging.root.handlers[:]:
23+
logging.root.removeHandler(handler)
24+
25+
if debug:
26+
logging.basicConfig(
27+
format="%(asctime)s : %(name)s %(levelname)s : %(message)s",
28+
level=logging.DEBUG,
29+
)
30+
else:
31+
logging.basicConfig(
32+
format="%(asctime)s : %(name)s %(levelname)s : %(message)s",
33+
level=logging.INFO,
34+
)
35+
36+
logging.debug("Debug ON")
37+
if len(sys.argv) == 1:
38+
click.echo(context.get_help())

requirements.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1+
alabaster==0.7.12
12
attrs==22.1.0
3+
Babel==2.10.3
24
black==22.8.0
35
boto3==1.24.66
46
botocore==1.27.66
7+
certifi==2022.6.15
8+
charset-normalizer==2.1.1
9+
chevron==0.14.0
510
click==8.1.3
11+
docutils==0.17.1
612
flake8==5.0.4
13+
idna==3.3
14+
imagesize==1.4.1
715
iniconfig==1.1.1
816
isort==5.10.1
17+
Jinja2==3.1.2
918
jmespath==1.0.1
19+
MarkupSafe==2.0.1
1020
mccabe==0.7.0
1121
mypy==0.971
1222
mypy-extensions==0.4.3
@@ -17,11 +27,34 @@ pluggy==1.0.0
1727
py==1.11.0
1828
pycodestyle==2.9.1
1929
pyflakes==2.5.0
30+
Pygments==2.13.0
2031
pyparsing==3.0.9
32+
pyrsistent==0.18.1
2133
pytest==7.1.3
2234
python-dateutil==2.8.2
35+
python-slugify==6.1.2
36+
pytz==2022.2.1
37+
PyYAML==5.4.1
38+
regex==2021.9.30
39+
requests==2.28.1
2340
s3transfer==0.6.0
2441
six==1.16.0
42+
snowballstemmer==2.2.0
43+
Sphinx==5.1.1
44+
sphinx-click==4.3.0
45+
sphinx-rtd-theme==1.0.0
46+
sphinxcontrib-applehelp==1.0.2
47+
sphinxcontrib-devhelp==1.0.2
48+
sphinxcontrib-htmlhelp==2.0.0
49+
sphinxcontrib-jsmath==1.0.1
50+
sphinxcontrib-qthelp==1.0.3
51+
sphinxcontrib-serializinghtml==1.1.5
52+
text-unidecode==1.3
2553
tomli==2.0.1
54+
tomlkit==0.7.2
2655
typing_extensions==4.3.0
56+
tzlocal==3.0
2757
urllib3==1.26.12
58+
watchdog==2.1.2
59+
websocket-client==1.4.1
60+
Werkzeug==1.0.1

0 commit comments

Comments
 (0)