MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / NsProviderSet

Class NsProviderSet

tests/test_commandset.py:1199–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1197
1198
1199class NsProviderSet(cmd2.CommandSet):
1200 # CommandSet which implements a namespace provider
1201 def __init__(self, dummy) -> None:
1202 # Use dummy argument so this won't be autoloaded by other tests
1203 super().__init__()
1204
1205 def ns_provider(self) -> argparse.Namespace:
1206 ns = argparse.Namespace()
1207 # Save what was passed as self from with_argparser().
1208 ns.self = self
1209 return ns
1210
1211
1212class NsProviderApp(cmd2.Cmd):

Callers 1

test_ns_providerFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_ns_providerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…