Commit 49780036 authored by ∞'s avatar 💻

Settle for blacklist instead of exclude

Remove config function from cli2 entrypoint
parent 85a3a99f
Pipeline #1809 passed with stages
in 35 seconds
......@@ -62,7 +62,7 @@ def config(**config):
config.cli2 = dict(blacklist=True)
@config(exclude=True)
@config(blacklist=True)
def autotest(path, cmd, ignore=None):
"""
The autowriting test pattern, minimal for testing cli2 scripts.
......@@ -451,7 +451,7 @@ class Importable:
continue
cfg = getattr(member, 'cli2', {})
if cfg.get('exclude', False):
if cfg.get('blacklist', False):
continue
yield Callable(name, member)
......@@ -552,7 +552,7 @@ class Group(collections.OrderedDict):
class ConsoleScript(Group):
cli2 = dict(exclude=True)
cli2 = dict(blacklist=True)
def __init__(self, doc=None, argv=None, default_command='help'):
# update cli2.console_script the singl370n in __1n17__ so it works
......
......@@ -7,7 +7,6 @@ cli2 provides sub-commands to introspect python modules or callables docstrings
or to execute callables or help working with cli2 itself.
help Get help for a command.
config config(**config)
debug Dump parsed variables.
docfile Docstring for a file path.
docmod Docstring for a module in dotted path.
......
......@@ -7,7 +7,6 @@ cli2 provides sub-commands to introspect python modules or callables docstrings
or to execute callables or help working with cli2 itself.
help Get help for a command.
config config(**config)
debug Dump parsed variables.
docfile Docstring for a file path.
docmod Docstring for a module in dotted path.
......
......@@ -7,7 +7,6 @@ cli2 provides sub-commands to introspect python modules or callables docstrings
or to execute callables or help working with cli2 itself.
help Get help for a command.
config config(**config)
debug Dump parsed variables.
docfile Docstring for a file path.
docmod Docstring for a module in dotted path.
......
......@@ -7,7 +7,6 @@ cli2 provides sub-commands to introspect python modules or callables docstrings
or to execute callables or help working with cli2 itself.
help Get help for a command.
config config(**config)
debug Dump parsed variables.
docfile Docstring for a file path.
docmod Docstring for a module in dotted path.
......
......@@ -9,7 +9,6 @@ cli2 provides sub-commands to introspect python modules or callables docstrings
or to execute callables or help working with cli2 itself.
help Get help for a command.
config config(**config)
debug Dump parsed variables.
docfile Docstring for a file path.
docmod Docstring for a module in dotted path.
......
......@@ -7,7 +7,6 @@ cli2 provides sub-commands to introspect python modules or callables docstrings
or to execute callables or help working with cli2 itself.
help Get help for a command.
config config(**config)
debug Dump parsed variables.
docfile Docstring for a file path.
docmod Docstring for a module in dotted path.
......
......@@ -7,7 +7,6 @@ cli2 provides sub-commands to introspect python modules or callables docstrings
or to execute callables or help working with cli2 itself.
help Get help for a command.
config config(**config)
debug Dump parsed variables.
docfile Docstring for a file path.
docmod Docstring for a module in dotted path.
......
......@@ -10,7 +10,6 @@ cli2 provides sub-commands to introspect python modules or callables docstrings
or to execute callables or help working with cli2 itself.
help Get help for a command.
config config(**config)
debug Dump parsed variables.
docfile Docstring for a file path.
docmod Docstring for a module in dotted path.
......
......@@ -10,7 +10,6 @@ cli2 provides sub-commands to introspect python modules or callables docstrings
or to execute callables or help working with cli2 itself.
help Get help for a command.
config config(**config)
debug Dump parsed variables.
docfile Docstring for a file path.
docmod Docstring for a module in dotted path.
......
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