| 1197 | |
| 1198 | |
| 1199 | class 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 | |
| 1212 | class NsProviderApp(cmd2.Cmd): |
no outgoing calls
searching dependent graphs…