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)

Format JSON data for display.

handle_clear(args)

Handle the clear command.

handle_discover(args)

Handle the discover command.

handle_import(args)

Handle the import command.

handle_list(args)

Handle the list command.

handle_search(args)

Handle the search command.

handle_show(args)

Handle the show command.

handle_stats(args)

Handle the stats command.

main()

Main function.

print_header(title[, style])

Print a header with rich formatting if available.

print_rich(message[, style, highlight, markup])

Print with rich formatting if available, otherwise use regular print.

print_subheader(title[, style])

Print a subheader with rich formatting if available.

print_table(headers, rows[, title])

Print a table with rich formatting if available.

setup_parser()

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.

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:

argparse.ArgumentParser