(args)
| 75 | |
| 76 | |
| 77 | def cmd_docs(args): |
| 78 | parts = args.function_path.split(".") |
| 79 | if len(parts) != 2: |
| 80 | print("Error: function path must be 'module.function' (e.g. root.create_entity)", file=sys.stderr) |
| 81 | sys.exit(1) |
| 82 | module, function = parts |
| 83 | try: |
| 84 | docs = function_docs(module, function) |
| 85 | except Exception as e: |
| 86 | print(f"Error: {e}", file=sys.stderr) |
| 87 | sys.exit(1) |
| 88 | print(format_output(docs, args.output_format)) |
| 89 | |
| 90 | |
| 91 | def cmd_run(args, extra_args): |
no test coverage detected