/**
* Matrix Pattern Help Command
* Display help information
*/
const CLI_VERSION = '1.0.0';
const HELP_TEXT = `
Matrix Pattern CLI v${CLI_VERSION}
USAGE:
matrix-pattern <command> [options]
COMMANDS:
init Initialize a new matrix pattern system
start Start the MCP server
help Show this help message
version Show version information
OPTIONS:
-d, --defaults Use default configuration for initialization
-h, --horizontals <pattern> Specify horizontal pattern configuration
--no-mcp Initialize without MCP server integration
-f, --force Force operation, overwrite existing files
--help Show help
-v, --version Show version
EXAMPLES:
matrix-pattern init # Interactive initialization
matrix-pattern init --defaults # Initialize with defaults
matrix-pattern init --horizontals "api,ui,db" # Custom horizontals
matrix-pattern start # Start MCP server
matrix-pattern help # Show help
MATRIX PATTERN CONCEPTS:
The Matrix Pattern System organizes code and patterns in a 2D grid:
• Rows (Horizontals): Represent different layers or concerns (API, UI, Data)
• Columns (Verticals): Represent different features or modules
This allows for:
- Horizontal synchronization: Sync patterns across layers
- Vertical synchronization: Sync patterns across features
- Forward-only constraints: Prevents overwriting existing patterns
- Metadata tracking: Track relationships and sync history
MCP SERVER INTEGRATION:
The Matrix Pattern System includes an MCP (Model Context Protocol) server
that provides tools for Claude and other AI systems to:
• Create and read matrix cells
• Perform horizontal and vertical synchronization
• List patterns and relationships
• Generate sync reports and metadata
For more information, visit: https://github.com/matrix-pattern/mcp-server
`;
/**
* Execute help command
*/
async function execute({ args, flags, cwd }) {
console.log(HELP_TEXT);
}
export default { execute };