dataflow.registry.bin.registry_cli¶
Haive Registry CLI.
This script provides a command-line interface for the Haive registry system. It allows users to: - Discover and register components (agents, tools, engines, games, etc.) - View registry statistics - Import LLM models - Search for components - View detailed information about components
- Usage:
python registry_cli.py discover all python registry_cli.py discover agents python registry_cli.py import llm-models python registry_cli.py stats python registry_cli.py search [type] [term] python registry_cli.py show [id]
Functions¶
|
Format JSON data for display. |
|
Handle the clear command. |
|
Handle the discover command. |
|
Handle the import command. |
|
Handle the list command. |
|
Handle the search command. |
|
Handle the show command. |
|
Handle the stats command. |
|
Main function. |
|
Print a header with rich formatting if available. |
|
Print with rich formatting if available, otherwise use regular print. |
|
Print a subheader with rich formatting if available. |
|
Print a table with rich formatting if available. |
Set up command-line argument parser. |
Module Contents¶
- dataflow.registry.bin.registry_cli.format_json(data)¶
Format JSON data for display.
- dataflow.registry.bin.registry_cli.handle_clear(args)¶
Handle the clear command.
- dataflow.registry.bin.registry_cli.handle_discover(args)¶
Handle the discover command.
- dataflow.registry.bin.registry_cli.handle_import(args)¶
Handle the import command.
- dataflow.registry.bin.registry_cli.handle_list(args)¶
Handle the list command.
- dataflow.registry.bin.registry_cli.handle_search(args)¶
Handle the search command.
- dataflow.registry.bin.registry_cli.handle_show(args)¶
Handle the show command.
- dataflow.registry.bin.registry_cli.handle_stats(args)¶
Handle the stats command.
- dataflow.registry.bin.registry_cli.main()¶
Main function.
- dataflow.registry.bin.registry_cli.print_header(title, style='bold blue')¶
Print a header with rich formatting if available.
- dataflow.registry.bin.registry_cli.print_rich(message, style='', highlight=False, markup=True)¶
Print with rich formatting if available, otherwise use regular print.
- dataflow.registry.bin.registry_cli.print_subheader(title, style='bold cyan')¶
Print a subheader with rich formatting if available.
- dataflow.registry.bin.registry_cli.print_table(headers, rows, title=None)¶
Print a table with rich formatting if available.
- dataflow.registry.bin.registry_cli.setup_parser()¶
Set up command-line argument parser.
- Return type: